React native version: 0.61.5 It cause random crash when app starts, it works with simulator, please help!
Last Exception Backtrace:
0 CoreFoundation 0x1b9036248 _exceptionPreprocess + 164 (NSException.m:202)
1 libobjc.A.dylib 0x1b23f7a68 objc_exception_throw + 60 (objc-exception.mm:356)
2 AppName 0x10238db70 RCTFatal + 668 (RCTAssert.m:146)
3 AppName 0x1023fe4f0 -[RCTExceptionsManager reportFatalException:stack:exceptionId:] + 496 (RCTExceptionsManager.mm:65)
4 CoreFoundation 0x1b90a0a14 invoking + 148 (:-1)
5 CoreFoundation 0x1b904cf2c -[NSInvocation invoke] + 428 (NSForwarding.m:3377)
6 CoreFoundation 0x1b904c944 -[NSInvocation invokeWithTarget:] + 64 (NSForwarding.m:3474)
7 AppName 0x1023bf0e0 -[RCTModuleMethod invokeWithBridge:module:arguments:] + 460 (RCTModuleMethod.mm:569)
8 AppName 0x1023c1238 facebook::react::invokeInner(RCTBridge*, RCTModuleData*, unsigned int, folly::dynamic const&) + 244 (RCTNativeModule.mm:108)
9 AppName 0x1023c0fa8 operator() + 44 (RCTNativeModule.mm:73)
10 AppName 0x1023c0fa8 invocation function for block in facebook::react::RCTNativeModule::invoke(unsigned int, folly::dynamic&&, int) + 88 (RCTNativeModule.mm:65)
11 libdispatch.dylib 0x1c04b04b4 _dispatch_call_block_and_release + 32 (init.c:1518)
12 libdispatch.dylib 0x1c04b1fdc _dispatch_client_callout + 20 (object.m:560)
13 libdispatch.dylib 0x1c04b9694 _dispatch_lane_serial_drain + 672 (inline_internal.h:2632)
14 libdispatch.dylib 0x1c04ba1e0 _dispatch_lane_invoke + 384 (queue.c:3940)
15 libdispatch.dylib 0x1c04c4e10 _dispatch_workloop_worker_thread + 652 (queue.c:6846)
16 libsystem_pthread.dylib 0x205954df8 _pthread_wqthread + 288 (pthread.c:2618)
17 libsystem_pthread.dylib 0x205954b98 start_wqthread + 8 (:-1)
I have tried reset cache, removed ios/pods and did pod install,rebuild the project again but it didn't work.