title: react native crash after update to Xcode 11.0
body: <p>I've just updated Xcode to version 11.0 and now when I run my react native app from Xcode on my plugged in iPhone, the app crashes on native calls:</p>
  
  <pre><code>2019-10-11 09:52:42.402 [fatal][tid:main] Exception '*** -[__NSArrayM objectAtIndexedSubscript:]: index 1 beyond bounds [0 .. 0]' was thrown while invoking getCurrentAppState on target AppState with params (
      2,
      3
  )
  callstack: (
      0   CoreFoundation                      0x000000020ae29294 &lt;redacted&gt; + 252
      1   libobjc.A.dylib                     0x000000020a0039f8 objc_exception_throw + 56
      2   CoreFoundation                      0x000000020ada2ce8 _CFArgv + 0
      3   CoreFoundation                      0x000000020ad27cfc &lt;redacted&gt; + 0
      4   MyApp                      0x000000010084dfac -[RCTModuleMethod processMethodSignature] + 10144
      5   MyApp                      0x00000001008526d4 -[RCTModuleMethod invokeWithBridge:module:arguments:] + 164
      6   MyApp                      0x00000001008e488c _ZN8facebook5reactL11invokeInnerEP9RCTBridgeP13RCTModuleDatajRKN5folly7dynamicE + 660
      7   MyApp                      0x00000001008e4400 _ZZN8facebook5react15RCTNativeModule6invokeEjON5folly7dynamicEiENK3$_0clEv + 144
      8   MyApp                      0x00000001008e4364 ___ZN8facebook5react15RCTNativeModule6invokeEjON5folly7dynamicEi_block_invoke + 28
      9   libdispatch.dylib                   0x0000000101dcb6f0 _dispatch_call_block_and_release + 24
      10  libdispatch.dylib                   0x0000000101dccc74 _dispatch_client_callout + 16
      11  libdispatch.dylib                   0x0000000101dda6fc _dispatch_main_queue_callback_4CF + 1360
      12  CoreFoundation                      0x000000020adbac1c &lt;redacted&gt; + 12
      13  CoreFoundation                      0x000000020adb5b54 &lt;redacted&gt; + 1924
      14  CoreFoundation                      0x000000020adb50b0 CFRunLoopRunSpecific + 436
      15  Foundation                          0x000000020b782fac &lt;redacted&gt; + 300
      16  Foundation                          0x000000020b782e3c &lt;redacted&gt; + 96
      17  MyApp                      0x0000000100796c94 +[RNSplashScreen show] + 308
      18  MyApp                      0x00000001006e4d7c -[AppDelegate application:didFinishLaunchingWithOptions:] + 444
      19  UIKitCore                           0x00000002375dbe30 &lt;redacted&gt; + 412
      20  UIKitCore                           0x00000002375dd594 &lt;redacted&gt; + 3352
      21  UIKitCore                           0x00000002375e2d20 &lt;redacted&gt; + 1540
      22  UIKitCore                           0x0000000236ea62dc &lt;redacted&gt; + 776
      23  UIKitCore                           0x0000000236eae874 &lt;redacted&gt; + 160
      24  UIKitCore                           0x0000000236ea5f60 &lt;redacted&gt; + 236
      25  UIKitCore                           0x0000000236ea6850 &lt;redacted&gt; + 1064
      26  UIKitCore                           0x0000000236ea4b9c &lt;redacted&gt; + 744
      27  UIKitCore                           0x0000000236ea4864 &lt;redacted&gt; + 428
      28  UIKitCore                           0x0000000236ea93a4 &lt;redacted&gt; + 220
      29  UIKitCore                           0x0000000236eaa188 _performActionsWithDelayForTransitionContext + 112
      30  UIKitCore                           0x0000000236ea925c &lt;redacted&gt; + 244
      31  UIKitCore                           0x0000000236eadf5c &lt;redacted&gt; + 360
      32  UIKitCore                           0x00000002375e1328 &lt;redacted&gt; + 540
      33  UIKitCore                           0x00000002371ddba8 &lt;redacted&gt; + 360
      34  FrontBoardServices                  0x000000020d7a49fc &lt;redacted&gt; + 440
      35  FrontBoardServices                  0x000000020d7ae40c &lt;redacted&gt; + 256
      36  FrontBoardServices                  0x000000020d7adc14 &lt;redacted&gt; + 64
      37  libdispatch.dylib                   0x0000000101dccc74 _dispatch_client_callout + 16
      38  libdispatch.dylib                   0x0000000101dd0840 _dispatch_block_invoke_direct + 232
      39  FrontBoardServices                  0x000000020d7df040 &lt;redacted&gt; + 40
      40  FrontBoardServices                  0x000000020d7decdc &lt;redacted&gt; + 408
      41  FrontBoardServices                  0x000000020d7df294 &lt;redacted&gt; + 52
      42  CoreFoundation                      0x000000020adbb018 &lt;redacted&gt; + 24
      43  CoreFoundation                      0x000000020adbaf98 &lt;redacted&gt; + 88
      44  CoreFoundation                      0x000000020adba880 &lt;redacted&gt; + 176
      45  CoreFoundation                      0x000000020adb57bc &lt;redacted&gt; + 1004
      46  CoreFoundation                      0x000000020adb50b0 CFRunLoopRunSpecific + 436
      47  GraphicsServices                    0x000000020cfb579c GSEventRunModal + 104
      48  UIKitCore                           0x00000002375e4978 UIApplicationMain + 212
      49  MyApp                      0x00000001006e551c main + 124
      50  libdyld.dylib                       0x000000020a87a8e0 &lt;redacted&gt; + 4
  )
  2019-10-11 09:52:42.407068+0200 MyApp[309:11033] Exception '*** -[__NSArrayM objectAtIndexedSubscript:]: index 1 beyond bounds [0 .. 0]' was thrown while invoking getCurrentAppState on target AppState with params (
      2,
      3
  )
  callstack: (
      0   CoreFoundation                      0x000000020ae29294 &lt;redacted&gt; + 252
      1   libobjc.A.dylib                     0x000000020a0039f8 objc_exception_throw + 56
      2   CoreFoundation                      0x000000020ada2ce8 _CFArgv + 0
      3   CoreFoundation                      0x000000020ad27cfc &lt;redacted&gt; + 0
      4   MyApp                      0x000000010084dfac -[RCTModuleMethod processMethodSignature] + 10144
      5   MyApp                      0x00000001008526d4 -[RCTModuleMethod invokeWithBridge:module:arguments:] + 164
      6   MyApp                      0x00000001008e488c _ZN8facebook5reactL11invokeInnerEP9RCTBridgeP13RCTModuleDatajRKN5folly7dynamicE + 660
      7   MyApp                      0x00000001008e4400 _ZZN8facebook5react15RCTNativeModule6invokeEjON5folly7dynamicEiENK3$_0clEv + 144
      8   MyApp                      0x00000001008e4364 ___ZN8facebook5react15RCTNativeModule6invokeEjON5folly7dynamicEi_block_invoke + 28
      9   libdispatch.dylib                   0x0000000101dcb6f0 _dispatch_call_block_and_release + 24
      10  libdispatch.dylib                   0x0000000101dccc74 _dispatch_client_callout + 16
      11  libdispatch.dylib                   0x0000000101dda6fc _dispatch_main_queue_callback_4CF + 1360
      12  CoreFoundation                      0x000000020adbac1c &lt;redacted&gt; + 12
      13  CoreFoundation                      0x000000020adb5b54 &lt;redacted&gt; + 1924
      14  CoreFoundation                      0x000000020adb50b0 CFRunLoopRunSpecific + 436
      15  Foundation                          0x000000020b782fac &lt;redacted&gt; + 300
      16  Foundation                          0x000000020b782e3c &lt;redacted&gt; + 96
      17  MyApp                      0x0000000100796c94 +[RNSplashScreen show] + 308
      18  MyApp                      0x00000001006e4d7c -[AppDelegate application:didFinishLaunchingWithOptions:] + 444
      19  UIKitCore                           0x00000002375dbe30 &lt;redacted&gt; + 412
      20  UIKitCore                           0x00000002375dd594 &lt;redacted&gt; + 3352
      21  UIKitCore                           0x00000002375e2d20 &lt;redacted&gt; + 1540
      22  UIKitCore                           0x0000000236ea62dc &lt;redacted&gt; + 776
      23  UIKitCore                           0x0000000236eae874 &lt;redacted&gt; + 160
      24  UIKitCore                           0x0000000236ea5f60 &lt;redacted&gt; + 236
      25  UIKitCore                           0x0000000236ea6850 &lt;redacted&gt; + 1064
      26  UIKitCore                           0x0000000236ea4b9c &lt;redacted&gt; + 744
      27  UIKitCore                           0x0000000236ea4864 &lt;redacted&gt; + 428
      28  UIKitCore                           0x0000000236ea93a4 &lt;redacted&gt; + 220
      29  UIKitCore                           0x0000000236eaa188 _performActionsWithDelayForTransitionContext + 112
      30  UIKitCore                           0x0000000236ea925c &lt;redacted&gt; + 244
      31  UIKitCore                           0x0000000236eadf5c &lt;redacted&gt; + 360
      32  UIKitCore                           0x00000002375e1328 &lt;redacted&gt; + 540
      33  UIKitCore                           0x00000002371ddba8 &lt;redacted&gt; + 360
      34  FrontBoardServices                  0x000000020d7a49fc &lt;redacted&gt; + 440
      35  FrontBoardServices                  0x000000020d7ae40c &lt;redacted&gt; + 256
      36  FrontBoardServices                  0x000000020d7adc14 &lt;redacted&gt; + 64
      37  libdispatch.dylib                   0x0000000101dccc74 _dispatch_client_callout + 16
      38  libdispatch.dylib                   0x0000000101dd0840 _dispatch_block_invoke_direct + 232
      39  FrontBoardServices                  0x000000020d7df040 &lt;redacted&gt; + 40
      40  FrontBoardServices                  0x000000020d7decdc &lt;redacted&gt; + 408
      41  FrontBoardServices                  0x000000020d7df294 &lt;redacted&gt; + 52
      42  CoreFoundation                      0x000000020adbb018 &lt;redacted&gt; + 24
      43  CoreFoundation                      0x000000020adbaf98 &lt;redacted&gt; + 88
      44  CoreFoundation                      0x000000020adba880 &lt;redacted&gt; + 176
      45  CoreFoundation                      0x000000020adb57bc &lt;redacted&gt; + 1004
      46  CoreFoundation                      0x000000020adb50b0 CFRunLoopRunSpecific + 436
      47  GraphicsServices                    0x000000020cfb579c GSEventRunModal + 104
      48  UIKitCore                           0x00000002375e4978 UIApplicationMain + 212
      49  MyApp                      0x00000001006e551c main + 124
      50  libdyld.dylib                       0x000000020a87a8e0 &lt;redacted&gt; + 4
  )
  
  2019-10-11 09:52:43.027 [fatal][tid:main] Exception '*** -[__NSArrayM objectAtIndexedSubscript:]: index 1 beyond bounds [0 .. 0]' was thrown while invoking getInitialNotification on target PushNotificationManager with params (
      148,
      149
  )
  callstack: (
      0   CoreFoundation                      0x000000020ae29294 &lt;redacted&gt; + 252
      1   libobjc.A.dylib                     0x000000020a0039f8 objc_exception_throw + 56
      2   CoreFoundation                      0x000000020ada2ce8 _CFArgv + 0
      3   CoreFoundation                      0x000000020ad27cfc &lt;redacted&gt; + 0
      4   MyApp                      0x000000010084dfac -[RCTModuleMethod processMethodSignature] + 10144
      5   MyApp                      0x00000001008526d4 -[RCTModuleMethod invokeWithBridge:module:arguments:] + 164
      6   MyApp                      0x00000001008e488c _ZN8facebook5reactL11invokeInnerEP9RCTBridgeP13RCTModuleDatajRKN5folly7dynamicE + 660
      7   MyApp                      0x00000001008e4400 _ZZN8facebook5react15RCTNativeModule6invokeEjON5folly7dynamicEiENK3$_0clEv + 144
      8   MyApp                      0x00000001008e4364 ___ZN8facebook5react15RCTNativeModule6invokeEjON5folly7dynamicEi_block_invoke + 28
      9   libdispatch.dylib                   0x0000000101dcb6f0 _dispatch_call_block_and_release + 24
      10  libdispatch.dylib                   0x0000000101dccc74 _dispatch_client_callout + 16
      11  libdispatch.dylib                   0x0000000101dda6fc _dispatch_main_queue_callback_4CF + 1360
      12  CoreFoundation                      0x000000020adbac1c &lt;redacted&gt; + 12
      13  CoreFoundation                      0x000000020adb5b54 &lt;redacted&gt; + 1924
      14  CoreFoundation                      0x000000020adb50b0 CFRunLoopRunSpecific + 436
      15  Foundation                          0x000000020b782fac &lt;redacted&gt; + 300
      16  Foundation                          0x000000020b782e3c &lt;redacted&gt; + 96
      17  MyApp                      0x0000000100796c94 +[RNSplashScreen show] + 308
      18  MyApp                      0x00000001006e4d7c -[AppDelegate application:didFinishLaunchingWithOptions:] + 444
      19  UIKitCore                           0x00000002375dbe30 &lt;redacted&gt; + 412
      20  UIKitCore                           0x00000002375dd594 &lt;redacted&gt; + 3352
      21  UIKitCore                           0x00000002375e2d20 &lt;redacted&gt; + 1540
      22  UIKitCore                           0x0000000236ea62dc &lt;redacted&gt; + 776
      23  UIKitCore                           0x0000000236eae874 &lt;redacted&gt; + 160
      24  UIKitCore                           0x0000000236ea5f60 &lt;redacted&gt; + 236
      25  UIKitCore                           0x0000000236ea6850 &lt;redacted&gt; + 1064
      26  UIKitCore                           0x0000000236ea4b9c &lt;redacted&gt; + 744
      27  UIKitCore                           0x0000000236ea4864 &lt;redacted&gt; + 428
      28  UIKitCore                           0x0000000236ea93a4 &lt;redacted&gt; + 220
      29  UIKitCore                           0x0000000236eaa188 _performActionsWithDelayForTransitionContext + 112
      30  UIKitCore                           0x0000000236ea925c &lt;redacted&gt; + 244
      31  UIKitCore                           0x0000000236eadf5c &lt;redacted&gt; + 360
      32  UIKitCore                           0x00000002375e1328 &lt;redacted&gt; + 540
      33  UIKitCore                           0x00000002371ddba8 &lt;redacted&gt; + 360
      34  FrontBoardServices                  0x000000020d7a49fc &lt;redacted&gt; + 440
      35  FrontBoardServices                  0x000000020d7ae40c &lt;redacted&gt; + 256
      36  FrontBoardServices                  0x000000020d7adc14 &lt;redacted&gt; + 64
      37  libdispatch.dylib                   0x0000000101dccc74 _dispatch_client_callout + 16
      38  libdispatch.dylib                   0x0000000101dd0840 _dispatch_block_invoke_direct + 232
      39  FrontBoardServices                  0x000000020d7df040 &lt;redacted&gt; + 40
      40  FrontBoardServices                  0x000000020d7decdc &lt;redacted&gt; + 408
      41  FrontBoardServices                  0x000000020d7df294 &lt;redacted&gt; + 52
      42  CoreFoundation                      0x000000020adbb018 &lt;redacted&gt; + 24
      43  CoreFoundation                      0x000000020adbaf98 &lt;redacted&gt; + 88
      44  CoreFoundation                      0x000000020adba880 &lt;redacted&gt; + 176
      45  CoreFoundation                      0x000000020adb57bc &lt;redacted&gt; + 1004
      46  CoreFoundation                      0x000000020adb50b0 CFRunLoopRunSpecific + 436
      47  GraphicsServices                    0x000000020cfb579c GSEventRunModal + 104
      48  UIKitCore                           0x00000002375e4978 UIApplicationMain + 212
      49  MyApp                      0x00000001006e551c main + 124
      50  libdyld.dylib                       0x000000020a87a8e0 &lt;redacted&gt; + 4
  )
  2019-10-11 09:52:43.038945+0200 MyApp[309:11033] Exception '*** -[__NSArrayM objectAtIndexedSubscript:]: index 1 beyond bounds [0 .. 0]' was thrown while invoking getInitialNotification on target PushNotificationManager with params (
      148,
      149
  )
  callstack: (
      0   CoreFoundation                      0x000000020ae29294 &lt;redacted&gt; + 252
      1   libobjc.A.dylib                     0x000000020a0039f8 objc_exception_throw + 56
      2   CoreFoundation                      0x000000020ada2ce8 _CFArgv + 0
      3   CoreFoundation                      0x000000020ad27cfc &lt;redacted&gt; + 0
      4   MyApp                      0x000000010084dfac -[RCTModuleMethod processMethodSignature] + 10144
      5   MyApp                      0x00000001008526d4 -[RCTModuleMethod invokeWithBridge:module:arguments:] + 164
      6   MyApp                      0x00000001008e488c _ZN8facebook5reactL11invokeInnerEP9RCTBridgeP13RCTModuleDatajRKN5folly7dynamicE + 660
      7   MyApp                      0x00000001008e4400 _ZZN8facebook5react15RCTNativeModule6invokeEjON5folly7dynamicEiENK3$_0clEv + 144
      8   MyApp                      0x00000001008e4364 ___ZN8facebook5react15RCTNativeModule6invokeEjON5folly7dynamicEi_block_invoke + 28
      9   libdispatch.dylib                   0x0000000101dcb6f0 _dispatch_call_block_and_release + 24
      10  libdispatch.dylib                   0x0000000101dccc74 _dispatch_client_callout + 16
      11  libdispatch.dylib                   0x0000000101dda6fc _dispatch_main_queue_callback_4CF + 1360
      12  CoreFoundation                      0x000000020adbac1c &lt;redacted&gt; + 12
      13  CoreFoundation                      0x000000020adb5b54 &lt;redacted&gt; + 1924
      14  CoreFoundation                      0x000000020adb50b0 CFRunLoopRunSpecific + 436
      15  Foundation                          0x000000020b782fac &lt;redacted&gt; + 300
      16  Foundation                          0x000000020b782e3c &lt;redacted&gt; + 96
      17  MyApp                      0x0000000100796c94 +[RNSplashScreen show] + 308
      18  MyApp                      0x00000001006e4d7c -[AppDelegate application:didFinishLaunchingWithOptions:] + 444
      19  UIKitCore                           0x00000002375dbe30 &lt;redacted&gt; + 412
      20  UIKitCore                           0x00000002375dd594 &lt;redacted&gt; + 3352
      21  UIKitCore                           0x00000002375e2d20 &lt;redacted&gt; + 1540
      22  UIKitCore                           0x0000000236ea62dc &lt;redacted&gt; + 776
      23  UIKitCore                           0x0000000236eae874 &lt;redacted&gt; + 160
      24  UIKitCore                           0x0000000236ea5f60 &lt;redacted&gt; + 236
      25  UIKitCore                           0x0000000236ea6850 &lt;redacted&gt; + 1064
      26  UIKitCore                           0x0000000236ea4b9c &lt;redacted&gt; + 744
      27  UIKitCore                           0x0000000236ea4864 &lt;redacted&gt; + 428
      28  UIKitCore                           0x0000000236ea93a4 &lt;redacted&gt; + 220
      29  UIKitCore                           0x0000000236eaa188 _performActionsWithDelayForTransitionContext + 112
      30  UIKitCore                           0x0000000236ea925c &lt;redacted&gt; + 244
      31  UIKitCore                           0x0000000236eadf5c &lt;redacted&gt; + 360
      32  UIKitCore                           0x00000002375e1328 &lt;redacted&gt; + 540
      33  UIKitCore                           0x00000002371ddba8 &lt;redacted&gt; + 360
      34  FrontBoardServices                  0x000000020d7a49fc &lt;redacted&gt; + 440
      35  FrontBoardServices                  0x000000020d7ae40c &lt;redacted&gt; + 256
      36  FrontBoardServices                  0x000000020d7adc14 &lt;redacted&gt; + 64
      37  libdispatch.dylib                   0x0000000101dccc74 _dispatch_client_callout + 16
      38  libdispatch.dylib                   0x0000000101dd0840 _dispatch_block_invoke_direct + 232
      39  FrontBoardServices                  0x000000020d7df040 &lt;redacted&gt; + 40
      40  FrontBoardServices                  0x000000020d7decdc &lt;redacted&gt; + 408
      41  FrontBoardServices                  0x000000020d7df294 &lt;redacted&gt; + 52
      42  CoreFoundation                      0x000000020adbb018 &lt;redacted&gt; + 24
      43  CoreFoundation                      0x000000020adbaf98 &lt;redacted&gt; + 88
      44  CoreFoundation                      0x000000020adba880 &lt;redacted&gt; + 176
      45  CoreFoundation                      0x000000020adb57bc &lt;redacted&gt; + 1004
      46  CoreFoundation                      0x000000020adb50b0 CFRunLoopRunSpecific + 436
      47  GraphicsServices                    0x000000020cfb579c GSEventRunModal + 104
      48  UIKitCore                           0x00000002375e4978 UIApplicationMain + 212
      49  MyApp                      0x00000001006e551c main + 124
      50  libdyld.dylib                       0x000000020a87a8e0 &lt;redacted&gt; + 4
  )
  </code></pre>
  
  <p>This project is running with RN 0.59.5 and I cannot update to 0.61 right now...</p>