title: React Native run on device iOS crash
body: <p>I'm trying to run my react native app on my iPhone 6, but when it goes in the debug phase it crashes, but there are no problems on running it on simulator.</p>
  
  <p>My react native version is 0.60.5</p>
  
  <p>These are my dependencies:</p>
  
  <pre><code>"dependencies": {&lt;br&gt;
      "@react-native-community/netinfo": "^4.1.5",&lt;br&gt;
      "jwt-decode": "^2.2.0",&lt;br&gt;
      "react": "16.8.6",&lt;br&gt;
      "react-native": "^0.60.5",&lt;br&gt;
      "react-native-auth0": "^1.5.0",&lt;br&gt;
      "react-native-calendars": "^1.210.0",&lt;br&gt;
      "react-native-device-info": "^2.3.2",&lt;br&gt;
      "react-native-document-picker": "git://github.com/Elyx0/react-native-document-picker.git#v3",&lt;br&gt;
      "react-native-file-viewer": "^2.0.0",&lt;br&gt;
      "react-native-fs": "^2.14.1",&lt;br&gt;
      "react-native-gesture-handler": "^1.4.1",&lt;br&gt;
      "react-native-image-picker": "^1.0.2",&lt;br&gt;
      "react-native-offline": "^5.0.0",&lt;br&gt;
      "react-native-progress": "^3.6.0",&lt;br&gt;
      "react-native-queue": "^1.2.1",&lt;br&gt;
      "react-native-splash-screen": "^3.2.0",&lt;br&gt;
      "react-native-svg": "^9.6.4",&lt;br&gt;
      "react-navigation": "^3.11.1",&lt;br&gt;
      "react-redux": "^7.1.0",&lt;br&gt;
      "realm": "^2.29.2",&lt;br&gt;
      "redux": "^4.0.4"&lt;br&gt;
    },&lt;br&gt;
    "devDependencies": {&lt;br&gt;
      "@babel/core": "^7.5.5",&lt;br&gt;
      "@babel/runtime": "^7.5.5",&lt;br&gt;
      "@react-native-community/eslint-config": "^0.0.5",&lt;br&gt;
      "babel-jest": "^24.9.0",&lt;br&gt;
      "eslint": "^6.2.0",&lt;br&gt;
      "jest": "^24.9.0",&lt;br&gt;
      "metro-react-native-babel-preset": "^0.56.0",&lt;br&gt;
      "react-test-renderer": "16.8.6"&lt;br&gt;
    },&lt;br&gt;
  </code></pre>
  
  <p>And this is the full log:</p>
  
  <pre><code>2019-08-26 17:02:18.721172+0200 iDiary[14898:1856748] [Accessibility] ****************** Loading GAX Client Bundle ****************
  2019-08-26 17:03:18.996939+0200 iDiary[14898:1856834] Task &lt;9BC4C6D4-EA36-4C9E-AE26-EA910C6A991F&gt;.&lt;1&gt; finished with error - code: -1001
  2019-08-26 17:03:19.030974+0200 iDiary[14898:1856834] Task &lt;9BC4C6D4-EA36-4C9E-AE26-EA910C6A991F&gt;.&lt;1&gt; HTTP load failed (error code: -999 [1:89])
  2019-08-26 17:03:19.027 [info][tid:main][RCTCxxBridge.mm:236] Initializing &lt;RCTCxxBridge: 0x103b13170&gt; (parent: &lt;RCTBridge: 0x283f536b0&gt;, executor: (null))
  2019-08-26 17:03:19.037682+0200 iDiary[14898:1856748] Initializing &lt;RCTCxxBridge: 0x103b13170&gt; (parent: &lt;RCTBridge: 0x283f536b0&gt;, executor: (null))
  2019-08-26 17:03:19.214 [info][tid:main][RCTRootView.m:293] Running application iDiary ({
      initialProps =     {
      };
      rootTag = 1;
  })
  2019-08-26 17:03:19.214706+0200 iDiary[14898:1856748] Running application iDiary ({
      initialProps =     {
      };
      rootTag = 1;
  })
  2019-08-26 17:03:19.299503+0200 iDiary[14898:1856748] [NetworkInfo] Signal strength query returned error: Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied", descriptor: &lt;CTServiceDescriptor 0x281472f00, domain=1, instance=1&gt;
  2019-08-26 17:03:19.551522+0200 iDiary[14898:1856748] [NetworkInfo] Signal strength query returned error: Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied", descriptor: &lt;CTServiceDescriptor 0x281469300, domain=1, instance=1&gt;
  2019-08-26 17:03:19.785 [info][tid:main][RCTCxxBridge.mm:1061] Invalidating &lt;RCTCxxBridge: 0x103b13170&gt; (parent: &lt;RCTBridge: 0x283f536b0&gt;, executor: RCTWebSocketExecutor)
  2019-08-26 17:03:19.786216+0200 iDiary[14898:1856748] Invalidating &lt;RCTCxxBridge: 0x103b13170&gt; (parent: &lt;RCTBridge: 0x283f536b0&gt;, executor: RCTWebSocketExecutor)
  2019-08-26 17:03:20.091 [info][tid:com.facebook.react.JavaScript][RCTNativeModule.mm:86] Attempted to invoke `5` (method ID) on `WebSocketModule` (NativeModule name) without a method queue.
  2019-08-26 17:03:20.091389+0200 iDiary[14898:1856934] Attempted to invoke `5` (method ID) on `WebSocketModule` (NativeModule name) without a method queue.
  2019-08-26 17:03:20.097 [info][tid:com.facebook.react.JavaScript][RCTNativeModule.mm:86] Attempted to invoke `5` (method ID) on `WebSocketModule` (NativeModule name) without a method queue.
  2019-08-26 17:03:20.097325+0200 iDiary[14898:1856934] Attempted to invoke `5` (method ID) on `WebSocketModule` (NativeModule name) without a method queue.
  2019-08-26 17:03:20.097 [info][tid:com.facebook.react.JavaScript][RCTNativeModule.mm:86] Attempted to invoke `5` (method ID) on `WebSocketModule` (NativeModule name) without a method queue.
  2019-08-26 17:03:20.097585+0200 iDiary[14898:1856934] Attempted to invoke `5` (method ID) on `WebSocketModule` (NativeModule name) without a method queue.
  2019-08-26 17:03:20.098 [info][tid:com.facebook.react.JavaScript][RCTNativeModule.mm:86] Attempted to invoke `5` (method ID) on `WebSocketModule` (NativeModule name) without a method queue.
  2019-08-26 17:03:20.097817+0200 iDiary[14898:1856934] Attempted to invoke `5` (method ID) on `WebSocketModule` (NativeModule name) without a method queue.
  2019-08-26 17:03:20.098 [info][tid:com.facebook.react.JavaScript][RCTNativeModule.mm:86] Attempted to invoke `1` (method ID) on `WebSocketModule` (NativeModule name) without a method queue.
  2019-08-26 17:03:20.098149+0200 iDiary[14898:1856934] Attempted to invoke `1` (method ID) on `WebSocketModule` (NativeModule name) without a method queue.
  2019-08-26 17:03:20.098 [info][tid:com.facebook.react.JavaScript][RCTNativeModule.mm:86] Attempted to invoke `0` (method ID) on `BlobModule` (NativeModule name) without a method queue.
  2019-08-26 17:03:20.098306+0200 iDiary[14898:1856934] Attempted to invoke `0` (method ID) on `BlobModule` (NativeModule name) without a method queue.
  2019-08-26 17:03:20.329 [info][tid:com.facebook.react.JavaScript][RCTNativeModule.mm:86] Attempted to invoke `4` (method ID) on `BlobModule` (NativeModule name) without a method queue.
  2019-08-26 17:03:20.328815+0200 iDiary[14898:1856934] Attempted to invoke `4` (method ID) on `BlobModule` (NativeModule name) without a method queue.
  2019-08-26 17:03:20.362 [warn][tid:com.facebook.react.JavaScript] [SECURITY] node-uuid: crypto not usable, falling back to insecure Math.random()
  2019-08-26 17:03:20.362037+0200 iDiary[14898:1856934] [SECURITY] node-uuid: crypto not usable, falling back to insecure Math.random()
  2019-08-26 17:03:20.376 [warn][tid:com.facebook.react.JavaScript] Accessing view manager configs directly off UIManager via UIManager['getConstants'] is no longer supported. Use UIManager.getViewManagerConfig('getConstants') instead.
  2019-08-26 17:03:20.375708+0200 iDiary[14898:1856934] Accessing view manager configs directly off UIManager via UIManager['getConstants'] is no longer supported. Use UIManager.getViewManagerConfig('getConstants') instead.
  2019-08-26 17:03:20.437 [warn][tid:com.facebook.react.JavaScript] Require cycle: src/navigation/AppNavigator.js -&gt; src/components/SideMenu.js -&gt; src/navigation/AppNavigator.js
  
  Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
  2019-08-26 17:03:20.437272+0200 iDiary[14898:1856934] Require cycle: src/navigation/AppNavigator.js -&gt; src/components/SideMenu.js -&gt; src/navigation/AppNavigator.js
  
  Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
  2019-08-26 17:03:20.541 [error][tid:com.facebook.react.JavaScript] undefined is not an object (evaluating 'result.viewConfig')
  2019-08-26 17:03:20.541567+0200 iDiary[14898:1856934] undefined is not an object (evaluating 'result.viewConfig')
  2019-08-26 17:03:20.564 [info][tid:com.facebook.react.JavaScript][RCTNativeModule.mm:86] Attempted to invoke `1` (method ID) on `ExceptionsManager` (NativeModule name) without a method queue.
  2019-08-26 17:03:20.564373+0200 iDiary[14898:1856934] Attempted to invoke `1` (method ID) on `ExceptionsManager` (NativeModule name) without a method queue.
  2019-08-26 17:03:20.573 [info][tid:com.facebook.react.JavaScript][RCTNativeModule.mm:86] Attempted to invoke `0` (method ID) on `Timing` (NativeModule name) without a method queue.
  2019-08-26 17:03:20.573063+0200 iDiary[14898:1856934] Attempted to invoke `0` (method ID) on `Timing` (NativeModule name) without a method queue.
  2019-08-26 17:03:20.586 [warn][tid:com.facebook.react.JavaScript] Unable to symbolicate stack trace: Bundle was not loaded from the packager
  2019-08-26 17:03:20.586445+0200 iDiary[14898:1856934] Unable to symbolicate stack trace: Bundle was not loaded from the packager
  2019-08-26 17:03:20.587 [info][tid:com.facebook.react.JavaScript][RCTNativeModule.mm:86] Attempted to invoke `1` (method ID) on `Timing` (NativeModule name) without a method queue.
  2019-08-26 17:03:20.587586+0200 iDiary[14898:1856934] Attempted to invoke `1` (method ID) on `Timing` (NativeModule name) without a method queue.
  2019-08-26 17:03:20.593 [error][tid:com.facebook.react.JavaScript] Module AppRegistry is not a registered callable module (calling runApplication)
  2019-08-26 17:03:20.593304+0200 iDiary[14898:1856934] Module AppRegistry is not a registered callable module (calling runApplication)
  2019-08-26 17:03:20.601 [info][tid:com.facebook.react.JavaScript][RCTNativeModule.mm:86] Attempted to invoke `1` (method ID) on `ExceptionsManager` (NativeModule name) without a method queue.
  2019-08-26 17:03:20.601356+0200 iDiary[14898:1856934] Attempted to invoke `1` (method ID) on `ExceptionsManager` (NativeModule name) without a method queue.
  2019-08-26 17:03:20.602 [info][tid:com.facebook.react.JavaScript][RCTNativeModule.mm:86] Attempted to invoke `0` (method ID) on `Timing` (NativeModule name) without a method queue.
  2019-08-26 17:03:20.601715+0200 iDiary[14898:1856934] Attempted to invoke `0` (method ID) on `Timing` (NativeModule name) without a method queue.
  2019-08-26 17:03:20.610 [warn][tid:com.facebook.react.JavaScript] Unable to symbolicate stack trace: Bundle was not loaded from the packager
  2019-08-26 17:03:20.609688+0200 iDiary[14898:1856934] Unable to symbolicate stack trace: Bundle was not loaded from the packager
  2019-08-26 17:03:20.610 [info][tid:com.facebook.react.JavaScript][RCTNativeModule.mm:86] Attempted to invoke `1` (method ID) on `Timing` (NativeModule name) without a method queue.
  2019-08-26 17:03:20.610356+0200 iDiary[14898:1856934] Attempted to invoke `1` (method ID) on `Timing` (NativeModule name) without a method queue.
  2019-08-26 17:03:30.614 [error][tid:com.facebook.react.JavaScript][RCTCxxBridge.mm:1108] Timed out waiting for modules to be invalidated
  2019-08-26 17:03:30.614340+0200 iDiary[14898:1856934] Timed out waiting for modules to be invalidated
  2019-08-26 17:04:19.798616+0200 iDiary[14898:1856834] Task &lt;EC7C12E8-0C02-4260-906B-5BE0B9224C15&gt;.&lt;2&gt; finished with error - code: -1001
  2019-08-26 17:04:19.801 [info][tid:main][RCTCxxBridge.mm:236] Initializing &lt;RCTCxxBridge: 0x103b269c0&gt; (parent: &lt;RCTBridge: 0x283f536b0&gt;, executor: RCTWebSocketExecutor)
  2019-08-26 17:04:19.801222+0200 iDiary[14898:1856748] Initializing &lt;RCTCxxBridge: 0x103b269c0&gt; (parent: &lt;RCTBridge: 0x283f536b0&gt;, executor: RCTWebSocketExecutor)
  2019-08-26 17:04:19.803884+0200 iDiary[14898:1856834] Task &lt;EC7C12E8-0C02-4260-906B-5BE0B9224C15&gt;.&lt;2&gt; HTTP load failed (error code: -999 [1:89])
  2019-08-26 17:04:19.834 [error][tid:main][RCTCxxBridge.mm:502] Unable to find module for AccessibilityManager
  2019-08-26 17:04:19.833846+0200 iDiary[14898:1856748] Unable to find module for AccessibilityManager
  2019-08-26 17:04:19.840714+0200 iDiary[14898:1856834] [] nw_socket_handle_socket_event [C3.1:1] Socket SO_ERROR [61: Connection refused]
  2019-08-26 17:04:19.847779+0200 iDiary[14898:1856834] [] nw_socket_handle_socket_event [C4.1:2] Socket SO_ERROR [61: Connection refused]
  2019-08-26 17:04:19.848193+0200 iDiary[14898:1856834] [] nw_socket_handle_socket_event [C3.2:1] Socket SO_ERROR [61: Connection refused]
  2019-08-26 17:04:19.849213+0200 iDiary[14898:1856835] [] nw_connection_get_connected_socket [C3] Client called nw_connection_get_connected_socket on unconnected nw_connection
  2019-08-26 17:04:19.849290+0200 iDiary[14898:1856835] TCP Conn 0x28215a7c0 Failed : error 0:61 [61]
  2019-08-26 17:04:19.856 [error][tid:main][RCTCxxBridge.mm:502] Unable to find module for EventDispatcher
  2019-08-26 17:04:19.855794+0200 iDiary[14898:1856748] Unable to find module for EventDispatcher
  2019-08-26 17:04:19.856171+0200 iDiary[14898:1856834] [] nw_socket_handle_socket_event [C4.2:2] Socket SO_ERROR [61: Connection refused]
  2019-08-26 17:04:19.857102+0200 iDiary[14898:1856834] TIC TCP Conn Failed [4:0x28215ae80]: 1:61 Err(61)
  2019-08-26 17:04:19.859256+0200 iDiary[14898:1856834] Task &lt;41F50C0D-6D7D-4438-99AC-A58F0678DBF7&gt;.&lt;3&gt; HTTP load failed (error code: -1004 [1:61])
  2019-08-26 17:04:19.859761+0200 iDiary[14898:1856834] Task &lt;41F50C0D-6D7D-4438-99AC-A58F0678DBF7&gt;.&lt;3&gt; finished with error - code: -1004
  2019-08-26 17:04:19.868 [fatal][tid:com.facebook.react.JavaScript] Connection to http://localhost:8081/debugger-proxy?role=client timed out. Are you running node proxy? If you are running on the device, check if you have the right IP address in `RCTWebSocketExecutor.m`.
  2019-08-26 17:04:19.868264+0200 iDiary[14898:1857060] Connection to http://localhost:8081/debugger-proxy?role=client timed out. Are you running node proxy? If you are running on the device, check if you have the right IP address in `RCTWebSocketExecutor.m`.
  2019-08-26 17:04:19.869 [info][tid:com.facebook.react.WebSocketExecutor][RCTWebSocketExecutor.m:145] WebSocket connection failed with error Error Domain=NSPOSIXErrorDomain Code=61 "Connection refused" UserInfo={_kCFStreamErrorCodeKey=61, _kCFStreamErrorDomainKey=1}
  2019-08-26 17:04:19.868969+0200 iDiary[14898:1856834] WebSocket connection failed with error Error Domain=NSPOSIXErrorDomain Code=61 "Connection refused" UserInfo={_kCFStreamErrorCodeKey=61, _kCFStreamErrorDomainKey=1}
  2019-08-26 17:04:19.881896+0200 iDiary[14898:1856748] *** Assertion failure in -[RCTCxxBridge ensureOnJavaScriptThread:](), /Users/dev/Desktop/iDiary/app-mobile/iDiary/node_modules/react-native/React/CxxBridge/RCTCxxBridge.mm:293
  2019-08-26 17:04:19.882588+0200 iDiary[14898:1856748] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'This method must not be called before the JS thread is created'
  *** First throw call stack:
  (0x188bad27c 0x187d879f8 0x188ac6988 0x1895d6ee8 0x10083199c 0x10083a1b0 0x103a3f6f0 0x103a40c74 0x103a4e6fc 0x188b3ec1c 0x188b39b54 0x188b390b0 0x18ad3979c 0x1b536f978 0x10072817c 0x1885fe8e0)
  libc++abi.dylib: terminating with uncaught exception of type NSException
  (lldb) 
  </code></pre>
  
  <p>Hope anyone knows how to solve it, thanks in advance</p>