React Native app crash on splash screen in release mode. In debug everything ok. Here is the error from XCode console.
*** Terminating app due to uncaught exception 'RCTFatalException: Unhandled JS Exception: Error: invalid host', reason: 'Unhandled JS Exception: Error: invalid host, stack:
@732:405
value@731:2737
@719:2589
h@2:1587
@718:591
h@2:1587
@708:753
h@2:1587
@6:206
h@2:1587
d@2:960
global code@5698:3
'
*** First throw call stack:
(
0 CoreFoundation 0x00000001107ae28d _exceptionPreprocess + 242
1 libobjc.A.dylib 0x0000000112157894 objc_exception_throw + 48
2 React 0x000000011043f1e8 RCTGetFatalHandler + 0
3 Rhino Dev 0x00000001043ed498 -[RCTExceptionsManager reportFatal:stack:exceptionId:] + 508
4 Rhino Dev 0x00000001043ede39 -[RCTExceptionsManager reportException:] + 1620
5 CoreFoundation 0x00000001107b4ebc invoking + 140
6 CoreFoundation 0x00000001107b21df -[NSInvocation invoke] + 302
7 CoreFoundation 0x00000001107b244f -[NSInvocation invokeWithTarget:] + 70
8 React 0x000000011047668b -[RCTModuleMethod invokeWithBridge:module:arguments:] + 583
9 React 0x0000000110478db0 _ZN8facebook5reactL11invokeInnerEP9RCTBridgeP13RCTModuleDatajRKN5folly7dynamicEiN12_GLOBAL__N_117SchedulingContextE + 574
10 React 0x00000001104789ad ___ZN8facebook5react15RCTNativeModule6invokeEjON5folly7dynamicEi_block_invoke + 110
11 libdispatch.dylib 0x000000011554e747 _dispatch_call_block_and_release + 12
12 libdispatch.dylib 0x000000011554f9f7 _dispatch_client_callout + 8
13 libdispatch.dylib 0x00000001155578c9 _dispatch_lane_serial_drain + 1127
14 libdispatch.dylib 0x0000000115558665 _dispatch_lane_invoke + 441
15 libdispatch.dylib 0x000000011556576e _dispatch_root_queue_drain_deferred_wlh + 318
16 libdispatch.dylib 0x0000000115564b69 _dispatch_workloop_worker_thread + 590
17 libsystem_pthread.dylib 0x0000000115a4ec47 _pthread_wqthread + 327
18 libsystem_pthread.dylib 0x0000000115a4db97 start_wqthread + 15
)
libc++abi: terminating due to uncaught exception of type NSException