I'm testing some nearby interaction on simulators. I was able to get updates in NISession but my app crashes unexpectedly. I have checked that the session is not getting invalidated. The errors have to do with NIExportedObjectForwarder. Can anyone explain what it does or what's causing this error?
2022-06-14 17:09:23.895783-0700 Threads[23791:8863595] -[NIExportedObjectForwarder didUpdateNearbyObjects:]: unrecognized selector sent to instance 0x600002d12550
2022-06-14 17:09:23.896240-0700 Threads[23791:8863595] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NIExportedObjectForwarder didUpdateNearbyObjects:]: unrecognized selector sent to instance 0x600002d12550'
*** First throw call stack:
(
0 CoreFoundation 0x00000001072e3d70 __exceptionPreprocess + 236
1 libobjc.A.dylib 0x0000000104ffe14c objc_exception_throw + 56
2 CoreFoundation 0x00000001072f32f4 +[NSObject(NSObject) instanceMethodSignatureForSelector:] + 0
3 CoreFoundation 0x00000001072e7fe0 ___forwarding___ + 1440
4 CoreFoundation 0x00000001072ea07c _CF_forwarding_prep_0 + 92
5 NearbyInteraction 0x0000000105100c74 -[NIServerConnection _sendDistanceUpdateForRequestedPeer:forPeer:] + 1544
6 NearbyInteraction 0x0000000105100e18 -[NIServerConnection handleDistanceUpdate:] + 312
7 NearbyInteraction 0x0000000105101e0c __54-[NIServerConnection handleEventFromSimulatorOnQueue:]_block_invoke + 316
8 libdispatch.dylib 0x000000010657833c _dispatch_call_block_and_release + 24
9 libdispatch.dylib 0x0000000106579b94 _dispatch_client_callout + 16
10 libdispatch.dylib 0x0000000106580cc4 _dispatch_lane_serial_drain + 764
11 libdispatch.dylib 0x0000000106581978 _dispatch_lane_invoke + 436
12 libdispatch.dylib 0x000000010658da00 _dispatch_workloop_worker_thread + 812
13 libsystem_pthread.dylib 0x00000001cc0adb40 _pthread_wqthread + 284
14 libsystem_pthread.dylib 0x00000001cc0ac904 start_wqthread + 8
)
libc++abi: terminating with uncaught exception of type NSException