Help! my App crash on launch from App Store/TestFlight only

Hi developers and apple support,


I have this very weird bug which has been bugging me.

My App works fine if launch with icon, run on xcode.

But it will crash on first or second time if tap "Open" button after installing in TestFlight or App Store.


Below is the crash log I could get from Firebase crash analytics. Could anyone help if you know any solution or pointers?


Thanks!


Exception name: EXC_BREAKPOINT / EXC_ARM_BREAKPOINT


1 MakeupHaul 4296785844 + 884660
2 MakeupHaul 4296785092 + 883908
3 MakeupHaul 4296765536 + 864352
4 UIKit -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 533544
5 UIKit -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 2698092
6 UIKit -[UIApplication _runWithMainScene:transitionContext:completion:] + 2722012
7 UIKit __84-[UIApplication _handleApplicationActivationWithScene:transitionContext:completion:]_block_invoke.3134 + 2805884
8 UIKit -[UIApplication workspaceDidEndTransaction:] + 2709696
9 FrontBoardServices __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 239800
10 FrontBoardServices -[FBSSerialQueue _performNext] + 239396
11 FrontBoardServices -[FBSSerialQueue _performNextFromRunLoopSource] + 240332
12 CoreFoundation __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 905844
13 CoreFoundation __CFRunLoopDoSources0 + 904124
14 CoreFoundation __CFRunLoopRun + 894908
15 CoreFoundation CFRunLoopRunSpecific + 36932
16 UIKit -[UIApplication _run] + 505304
17 UIKit UIApplicationMain + 484188
18 MakeupHaul 4296010256 + 109072
19 libdyld.dylib start + 17844
Help! my App crash on launch from App Store/TestFlight only
 
 
Q