Standalone Build Crashing on iOS only

Please provide the following:

  1. SDK Version: 44
  2. Platforms(Android/iOS/web/all): iOS
  3. Add the appropriate “Tag” based on what Expo library you have a question on.

After upgrading from SDK 43 to SDK 44, our iOS application crashes on open - doesn’t get to the splash screen at all. Android works without issue.

Here are extracts of the the crash log:

Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Code Type: X86-64 (Native)
Parent Process: launchd_sim [53947]
Responsible: SimulatorTrampoline [2786]
User ID: 501

Date/Time: 2022-01-26 22:28:28.296 +0200
OS Version: macOS 11.6.2 (20G314)
Report Version: 12
Bridge OS Version: 6.1 (19P647)
Anonymous UUID: C5FEA3AF-28A3-95DC-4376-2FE8DBB9D5DB

Time Awake Since Boot: 53000 seconds

System Integrity Protection: enabled

Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Exception Type: EXC_BAD_INSTRUCTION (SIGILL)
Exception Codes: 0x0000000000000001, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY

Termination Signal: Illegal instruction: 4
Termination Reason: Namespace SIGNAL, Code 0x4
Terminating Process: exc handler [55297]

Application Specific Information:
dyld4 config: DYLD_ROOT_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot
CoreSimulator 776.4 - Device: iPhone 13 (F4408D40-F691-4F14-AF6F-43A0038B78C5) - Runtime: iOS 15.0 (19A339) - DeviceType: iPhone 13

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 0x0000000104331763 specialized ExpoUpdatesReactDelegateHandler.appController(:didStartWithSuccess:) + 1011
1 0x0000000104330d7f @objc ExpoUpdatesReactDelegateHandler.appController(
:didStartWithSuccess:) + 47
2 0x000000010430de5a -[EXUpdatesAppController start] + 375
3 0x0000000104330a61 ExpoUpdatesReactDelegateHandler.createBridge(reactDelegate:bridgeDelegate:launchOptions:) + 129
4 0x000000010435d236 ExpoReactDelegate.createBridge(delegate:launchOptions:) + 454
5 0x000000010435d4f4 @objc ExpoReactDelegate.createBridge(delegate:launchOptions:) + 100
6 0x000000010433fc01 -[EXReactDelegateWrapper createBridgeWithDelegate:launchOptions:] + 82
7 0x00000001042d266a -[AppDelegate application:didFinishLaunchingWithOptions:] + 106
8 com.apple.UIKitCore 0x00007fff24ff7e21 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 216
9 com.apple.UIKitCore 0x00007fff24ff9a91 -[UIApplication _callInitializationDelegatesWithActions:forCanvas:payload:fromOriginatingProcess:] + 4115
10 com.apple.UIKitCore 0x00007fff24fff403 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1221
11 com.apple.UIKitCore 0x00007fff24580668 -[_UISceneLifecycleMultiplexer completeApplicationLaunchWithFBSScene:transitionContext:] + 122
12 com.apple.UIKitCore 0x00007fff24b693e2 _UIScenePerformActionsWithLifecycleActionMask + 88
13 com.apple.UIKitCore 0x00007fff2458115f __101-[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:]_block_invoke + 198
14 com.apple.UIKitCore 0x00007fff24580b95 -[_UISceneLifecycleMultiplexer _performBlock:withApplicationOfDeactivationReasons:fromReasons:] + 248
15 com.apple.UIKitCore 0x00007fff24580f93 -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:] + 840
16 com.apple.UIKitCore 0x00007fff24580842 -[_UISceneLifecycleMultiplexer uiScene:transitionedFromState:withTransitionContext:] + 351
17 com.apple.UIKitCore 0x00007fff2458abc6 __186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block_invoke + 178
18 com.apple.UIKitCore 0x00007fff24a4e7a3 +[BSAnimationSettings(UIKit) tryAnimatingWithSettings:actions:completion:] + 871
19 com.apple.UIKitCore 0x00007fff24b85f9a _UISceneSettingsDiffActionPerformChangesWithTransitionContext + 246
20 com.apple.UIKitCore 0x00007fff2458a844 -[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:] + 346
21 com.apple.UIKitCore 0x00007fff24389d6e __64-[UIScene scene:didUpdateWithDiff:transitionContext:completion:]_block_invoke.573 + 797
22 com.apple.UIKitCore 0x00007fff2438871b -[UIScene _emitSceneSettingsUpdateResponseForCompletion:afterSceneUpdateWork:] + 253
23 com.apple.UIKitCore 0x00007fff2438992d -[UIScene scene:didUpdateWithDiff:transitionContext:completion:] + 255
24 com.apple.UIKitCore 0x00007fff24ffdce6 -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 508
25 com.apple.UIKitCore 0x00007fff24a7e62e -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 358
26 com.apple.FrontBoardServices 0x00007fff26483d98 -[FBSScene _callOutQueue_agent_didCreateWithTransitionContext:completion:] + 419
27 com.apple.FrontBoardServices 0x00007fff264b04a3 __94-[FBSWorkspaceScenesClient createWithSceneID:groupID:parameters:transitionContext:completion:]_block_invoke.180 + 102
28 com.apple.FrontBoardServices 0x00007fff2649221a -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 209
29 com.apple.FrontBoardServices 0x00007fff264b0082 __94-[FBSWorkspaceScenesClient createWithSceneID:groupID:parameters:transitionContext:completion:]_block_invoke + 352
30 libdispatch.dylib 0x00007fff20111a56 _dispatch_client_callout + 8
31 libdispatch.dylib 0x00007fff20114c5d _dispatch_block_invoke_direct + 281
32 com.apple.FrontBoardServices 0x00007fff264d6dc8 FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK + 30
33 com.apple.FrontBoardServices 0x00007fff264d6cbe -[FBSSerialQueue _targetQueue_performNextIfPossible] + 174
34 com.apple.FrontBoardServices 0x00007fff264d6df0 -[FBSSerialQueue _performNextFromRunLoopSource] + 19
35 com.apple.CoreFoundation 0x00007fff20369e25 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 17
36 com.apple.CoreFoundation 0x00007fff20369d1d __CFRunLoopDoSource0 + 180
37 com.apple.CoreFoundation 0x00007fff203691f2 __CFRunLoopDoSources0 + 242
38 com.apple.CoreFoundation 0x00007fff20363951 __CFRunLoopRun + 875
39 com.apple.CoreFoundation 0x00007fff20363103 CFRunLoopRunSpecific + 567
40 com.apple.GraphicsServices 0x00007fff2c851cd3 GSEventRunModal + 139
41 com.apple.UIKitCore 0x00007fff24ffbe63 -[UIApplication _run] + 928
42 com.apple.UIKitCore 0x00007fff25000a53 UIApplicationMain + 101
43 0x00000001042d2adb main + 80
44 dyld_sim 0x00000001050cce1e start_sim + 10
45 ??? 0x0000000000000001 0 + 1
46 ??? 0x0000000000000001 0 + 1

Thread 1:
0 libsystem_pthread.dylib 0x00007fff6bfea420 start_wqthread + 0

Thread 2:
0 libsystem_pthread.dylib 0x00007fff6bfea420 start_wqthread + 0

Thread 3:: Dispatch queue: com.apple.UIKit.KeyboardManagement
0 libsystem_kernel.dylib 0x00007fff6bf999ee __ulock_wait + 10
1 libdispatch.dylib 0x00007fff2011226a _dlock_wait + 45
2 libdispatch.dylib 0x00007fff201120cc _dispatch_thread_event_wait_slow + 40
3 libdispatch.dylib 0x00007fff2011fd8e DISPATCH_WAIT_FOR_QUEUE + 326
4 libdispatch.dylib 0x00007fff2011f909 _dispatch_sync_f_slow + 194
5 com.apple.UIKitCore 0x00007fff24e18e7e __37-[_UIRemoteKeyboards startConnection]block_invoke_3 + 98
6 com.apple.CoreFoundation 0x00007fff2040247c invoking
+ 140
7 com.apple.CoreFoundation 0x00007fff203ff872 -[NSInvocation invoke] + 305
8 com.apple.Foundation 0x00007fff209121c3 NSXPCCONNECTION_IS_CALLING_OUT_TO_REPLY_BLOCK + 17
9 com.apple.Foundation 0x00007fff20911d79 -[NSXPCConnection _decodeAndInvokeReplyBlockWithEvent:sequence:replyInfo:] + 653
10 com.apple.Foundation 0x00007fff20916759 __88-[NSXPCConnection _sendInvocation:orArguments:count:methodSignature:selector:withProxy:]_block_invoke_3 + 205
11 libxpc.dylib 0x00007fff2006a0f1 _xpc_connection_reply_callout + 36
12 libxpc.dylib 0x00007fff2005f53c _xpc_connection_call_reply_async + 69
13 libdispatch.dylib 0x00007fff20111abc _dispatch_client_callout3 + 8
14 libdispatch.dylib 0x00007fff2012cc95 _dispatch_mach_msg_async_reply_invoke + 411
15 libdispatch.dylib 0x00007fff20117f1c _dispatch_lane_serial_drain + 351
16 libdispatch.dylib 0x00007fff20118c68 _dispatch_lane_invoke + 455
17 libdispatch.dylib 0x00007fff201236de _dispatch_workloop_worker_thread + 772
18 libsystem_pthread.dylib 0x00007fff6bfeb45d _pthread_wqthread + 314
19 libsystem_pthread.dylib 0x00007fff6bfea42f start_wqthread + 15

Thread 4:
0 libsystem_pthread.dylib 0x00007fff6bfea420 start_wqthread + 0

Thread 5:: com.apple.uikit.eventfetch-thread
0 libsystem_kernel.dylib 0x00007fff6bf982ba mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff6bf9862c mach_msg + 60
2 com.apple.CoreFoundation 0x00007fff20369450 __CFRunLoopServiceMachPort + 319
3 com.apple.CoreFoundation 0x00007fff20363af3 __CFRunLoopRun + 1293
4 com.apple.CoreFoundation 0x00007fff20363103 CFRunLoopRunSpecific + 567
5 com.apple.Foundation 0x00007fff2081941c -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 213
6 com.apple.Foundation 0x00007fff20819693 -[NSRunLoop(NSRunLoop) runUntilDate:] + 72
7 com.apple.UIKitCore 0x00007fff250bc0b9 -[UIEventFetcher threadMain] + 491
8 com.apple.Foundation 0x00007fff20842142 NSThread__start + 999
9 libsystem_pthread.dylib 0x00007fff6bfee8fc _pthread_start + 224
10 libsystem_pthread.dylib 0x00007fff6bfea443 thread_start + 15

Thread 6:
0 libsystem_pthread.dylib 0x00007fff6bfea420 start_wqthread + 0

Thread 7:
0 libsystem_pthread.dylib 0x00007fff6bfea420 start_wqthread + 0

Thread 8:: com.facebook.react.JavaScript
0 0x0000000104468e2c std::__1::__function::__func<void () block_pointer __strong, std::__1::allocatorstd::__1::allocator, void ()>::operator()() + 0
1 0x000000010446b730 facebook::react::tryAndReturnError(std::__1::function<void ()> const&) + 22
2 0x0000000104460bd8 -[RCTCxxBridge _tryAndHandleError:] + 103
3 com.apple.Foundation 0x00007fff2084258c __NSThreadPerformPerform + 207
4 com.apple.CoreFoundation 0x00007fff20369e25 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 17
5 com.apple.CoreFoundation 0x00007fff20369d1d __CFRunLoopDoSource0 + 180
6 com.apple.CoreFoundation 0x00007fff203691f2 __CFRunLoopDoSources0 + 242
7 com.apple.CoreFoundation 0x00007fff20363951 __CFRunLoopRun + 875
8 com.apple.CoreFoundation 0x00007fff20363103 CFRunLoopRunSpecific + 567
9 0x0000000104460b1d +[RCTCxxBridge runRunLoop] + 274
10 com.apple.Foundation 0x00007fff20842142 NSThread__start + 999
11 libsystem_pthread.dylib 0x00007fff6bfee8fc _pthread_start + 224
12 libsystem_pthread.dylib 0x00007fff6bfea443 thread_start + 15

Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000028 rbx: 0x0000600003ef3090 rcx: 0x0000000000000001 rdx: 0x0000000000000103
rdi: 0x00000001048c7120 rsi: 0x0000000000000103 rbp: 0x00007ffeeb92cec0 rsp: 0x00007ffeeb92ce70
r8: 0x0000000000000010 r9: 0x00006000029fe1c0 r10: 0x000000000000000f r11: 0x00000000000000dc
r12: 0x0000000000000000 r13: 0x00006000036e0690 r14: 0x0000600003bf5180 r15: 0x0000000000000000
rip: 0x0000000104331763 rfl: 0x0000000000010246 cr2: 0x0000000104501146

Logical CPU: 10
Error Code: 0x00000000
Trap Number: 6

Thread 0 instruction stream:
00 48 8b 7c 03 08 0f 57-c0 0f 11 04 03 e8 0f 2d .H.|…W…-
36 00 48 8b 05 dc 5c 5a-00 4c 8b 3c 03 48 c7 04 6.H…\Z.L.<.H…
03 00 00 00 00 48 8b 7d-c0 41 ff d4 48 8b 7d b0 …H.}.A…H.}.
41 ff d4 4c 89 f7 41 ff-d4 4c 89 ff e8 e0 2c 36 A…L…A…L…,6
00 4c 89 ef 41 ff d4 48-8b 7d c8 4c 89 e0 48 83 .L…A…H.}.L…H.
c4 28 5b 41 5c 41 5d 41-5e 41 5f 5d ff e0 0f 0b .([A\A]A^A_]…
[0f]0b 0f 0b 0f 0b 0f 0b-48 8d 05 be 7a 3d 00 49 …H…z=.I <==
b8 00 00 00 00 00 00 00-80 49 09 c0 48 8d 3d ba …I…H.=.
7a 3d 00 4c 8d 0d 83 7a-3d 00 48 b9 21 00 00 00 z=.L…z=.H.!..
00 00 00 d0 be 0b 00 00-00 ba 02 00 00 00 6a 00 …j.
6a 4a 6a 02 6a 2f e8 8c-19 36 00 48 83 c4 20 0f jJj.j/…6.H… .
0b 66 2e 0f 1f 84 00 00-00 00 00 66 90 50 48 8d .f…f.PH.

Thread 0 last branch register state not available.

If you could help me understand what could be causing the error I would appreciate it - currently blocking us from updating our app on the App Stores.

Thanks for the link, using XCode I get the following:

0x0000000100430b30 Swift runtime failure: Unexpectedly found nil while unwrapping an Optional value + 0 (ExpoUpdatesReactDelegateHandler.swift:0)

I know there was an issue with the ExpoUpdates package recently but from what I can see from the repo it is meant to have been resolved. I’ve set updates.enabled to false in my app.config.js file so the error is a bit strange to me.

1 Like

Found the answer here: [expo-updates] Disable expo-updates in app.json make iOS app crash at launch. - Giters.

1 Like

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.