Hello everyone, I'm releasing an Expo React Native app for Android and iOS.
The Android release went well, but the iOS build crashes when opening in Testflight and the submission to Appstore crashes as per the review feedback. When I run it locally with ExpoGo it works as expected.
Im not experienced in iOS development and my research didn't give me any concrete answers, a hint may be that on the JS code somewhere an object is being used as a boolean in a condition.
Can someone point me to the nature of this issue so I can continue debugging?
This is the crash log on Xcode when i create a new release:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSDictionaryM boolValue]: unrecognized selector sent to instance 0x600000230300'
*** First throw call stack:
(
0 CoreFoundation 0x00000001804ae138 __exceptionPreprocess + 172
1 libobjc.A.dylib 0x0000000180087db4 objc_exception_throw + 56
2 CoreFoundation 0x00000001804c2f88 +[NSObject(NSObject) instanceMethodSignatureForSelector:] + 0
3 CoreFoundation 0x00000001804b2288 forwarding + 1280
4 CoreFoundation 0x00000001804b45ac _CF_forwarding_prep_0 + 92
5 ColineleTransilvaniei 0x0000000104e6abbc __41-[RCTModuleMethod processMethodSignature]_block_invoke_12 + 68
6 ColineleTransilvaniei 0x0000000104e6bd88 -[RCTModuleMethod invokeWithBridge:module:arguments:] + 292
7 ColineleTransilvaniei 0x0000000104e6ded0 _ZN8facebook5reactL11invokeInnerEP9RCTBridgeP13RCTModuleDatajRKN5folly7dynamicEiN12_GLOBAL__N_117SchedulingContextE + 456
8 ColineleTransilvaniei 0x0000000104e6db28 ___ZN8facebook5react15RCTNativeModule6invokeEjON5folly7dynamicEi_block_invoke + 112
9 libdispatch.dylib 0x00000001070d7ec4 _dispatch_call_block_and_release + 24
10 libdispatch.dylib 0x00000001070d973c _dispatch_client_callout + 16
11 libdispatch.dylib 0x00000001070e1a30 _dispatch_lane_serial_drain + 916
12 libdispatch.dylib 0x00000001070e2774 _dispatch_lane_invoke + 420
13 libdispatch.dylib 0x00000001070ef1a8 _dispatch_root_queue_drain_deferred_wlh + 324
14 libdispatch.dylib 0x00000001070ee604 _dispatch_workloop_worker_thread + 488
15 libsystem_pthread.dylib 0x0000000105b1b814 _pthread_wqthread + 284
16 libsystem_pthread.dylib 0x0000000105b1a5d4 start_wqthread + 8
)
libc++abi: terminating due to uncaught exception of type NSException
PS: I failed to Symbolicate the crash logs as well, but will try again