Built app crashes on Open, works on Simulator

This is the crash log from device

Last Exception Backtrace: 0 CoreFoundation 0x1da0cc288 __exceptionPreprocess + 220 1 libobjc.A.dylib 0x1f2dfb744 objc_exception_throw + 60 2 celsius 0x1030e4a18 RCTFormatError + 2378264 (RCTAssert.m:166) 3 celsius 0x102f002b4 +[CodePush ensureBinaryBundleExists] + 393908 (CodePush.m:370) 4 celsius 0x102eff79c +[CodePush bundleURLForResource:withExtension:subdirectory:bundle:] + 391068 (CodePush.m:159) 5 celsius 0x1030e6dd8 -[RCTBridge setUp] + 2387416 (RCTBridge.m:344) 6 celsius 0x1030e6620 -[RCTBridge initWithDelegate:bundleURL:moduleProvider:launchOptions:] + 2385440 (RCTBridge.m:212) 7 celsius 0x102ea5ff8 -[AppDelegate application:didFinishLaunchingWithOptions:] + 24568 (AppDelegate.m:38) 8 UIKitCore 0x1dc7d6a44 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 340 9 UIKitCore 0x1dc9bda78 -[UIApplication _callInitializationDelegatesWithActions:forCanvas:payload:fromOriginatingProcess:] + 3572 10 UIKitCore 0x1dc9a6678 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1180 11 UIKitCore 0x1dc8041a8 -[_UISceneLifecycleMultiplexer completeApplicationLaunchWithFBSScene:transitionContext:] + 152 12 UIKitCore 0x1dc65e57c _UIScenePerformActionsWithLifecycleActionMask + 104 13 UIKitCore 0x1dc789090 __101-[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:]_block_invoke + 216 14 UIKitCore 0x1dc8a8fe0 -[_UISceneLifecycleMultiplexer _performBlock:withApplicationOfDeactivationReasons:fromReasons:] + 248 15 UIKitCore 0x1dcae7c58 -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:] + 772 16 UIKitCore 0x1dca731e0 -[_UISceneLifecycleMultiplexer uiScene:transitionedFromState:withTransitionContext:] + 340 17 UIKitCore 0x1dc65f368 __186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block_invoke + 196 18 UIKitCore 0x1dc71f3c0 +[BSAnimationSettings(UIKit) tryAnimatingWithSettings:actions:completion:] + 892 19 UIKitCore 0x1dc66126c _UISceneSettingsDiffActionPerformChangesWithTransitionContext + 276 20 UIKitCore 0x1dc74b544 -[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:] + 384 21 UIKitCore 0x1dcbd0240 __64-[UIScene scene:didUpdateWithDiff:transitionContext:completion:]_block_invoke.615 + 776 22 UIKitCore 0x1dc68f64c -[UIScene _emitSceneSettingsUpdateResponseForCompletion:afterSceneUpdateWork:] + 256 23 UIKitCore 0x1dc6d2fac -[UIScene scene:didUpdateWithDiff:transitionContext:completion:] + 288 24 UIKitCore 0x1dc808fac -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 584 25 UIKitCore 0x1dc749808 -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 388 26 FrontBoardServices 0x1ec2fb294 -[FBSScene _callOutQueue_agent_didCreateWithTransitionContext:completion:] + 440 27 FrontBoardServices 0x1ec321090 __94-[FBSWorkspaceScenesClient createWithSceneID:groupID:parameters:transitionContext:completion:]_block_invoke.215 + 128 28 FrontBoardServices 0x1ec2dc308 -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 240 29 FrontBoardServices 0x1ec2dd958 __94-[FBSWorkspaceScenesClient createWithSceneID:groupID:parameters:transitionContext:completion:]_block_invoke + 372 30 libdispatch.dylib 0x1d9d33a30 _dispatch_client_callout + 20 31 libdispatch.dylib 0x1d9d374e0 _dispatch_block_invoke_direct + 264 32 FrontBoardServices 0x1ec2ddc70 FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK + 48 33 FrontBoardServices 0x1ec2dd040 -[FBSSerialQueue _targetQueue_performNextIfPossible] + 220 34 FrontBoardServices 0x1ec2e1700 -[FBSSerialQueue _performNextFromRunLoopSource] + 28 35 CoreFoundation 0x1da0ee414 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 28 36 CoreFoundation 0x1da0ff1a0 __CFRunLoopDoSource0 + 208 37 CoreFoundation 0x1da038694 __CFRunLoopDoSources0 + 268 38 CoreFoundation 0x1da03e05c __CFRunLoopRun + 828 39 CoreFoundation 0x1da051bc8 CFRunLoopRunSpecific + 600 40 GraphicsServices 0x1f61bc374 GSEventRunModal + 164 41 UIKitCore 0x1dc9c5b58 -[UIApplication _run] + 1100 42 UIKitCore 0x1dc747090 UIApplicationMain + 364 43 celsius 0x102ea63b8 main + 25528 (main.m:14) 44 dyld 0x1039d9da4 start + 520

Have you tried debugging it?

(Also, please use the code block in the forums editor so the text is displayed appropriately. This looks like a massive jumble of stuff.)

2 celsius 0x1030e4a18 RCTFormatError + 2378264 (RCTAssert.m:166)
3 celsius 0x102f002b4 +[CodePush ensureBinaryBundleExists] + 393908 (CodePush.m:370)

It looks like CodePush is asserting based on some internal check failing, so I think this crash is something you'll need to resolve with CodePush support.

Built app crashes on Open, works on Simulator
 
 
Q