I'm about to publish my first ever app on the AppStore, but am facing some issues. A few days ago, my first build was rejected because it crashed on launch. However, I have been unable to reproduce it using AdHoc distribution and installing it on my phone as well as my co-founder's phone. I have also tried building it for multiple simulators - in none of those cases is it failing.
I symbolicated the crash report Apple gave me and here is the relevant part (only including the thread that crashed)
{"app_name":"sigma","timestamp":"2020-08-25 07:32:34.00 -0700","app_version":"1.0.0","slice_uuid":"274325c4-35dc-3c9a-aa82-98cda4a16a9b","adam_id":1526060121,"build_version":"2","bundleID":"com.sofyapp.sigma","share_with_app_devs":0,"is_first_party":0,"bug_type":"109","os_version":"iPhone OS 13.6 (17G68)","incident_id":"B5275F1D-CA2D-4E30-ACED-E0AE5F4C4B0C","name":"sigma"}Incident Identifier: B5275F1D-CA2D-4E30-ACED-E0AE5F4C4B0CCrashReporter Key: 36178cb8e6da68c433c46e20bf698fff77381bd8Hardware Model: iPhone11,8Process: sigma [279]Path: /private/var/containers/Bundle/Application/7213F44D-8F36-437F-A032-822ABBBAA828/sigma.app/sigmaIdentifier: com.sofyapp.sigmaVersion: 2 (1.0.0)AppStoreTools: 11E707Code Type: ARM-64 (Native)Role: ForegroundParent Process: launchd [1]Coalition: com.sofyapp.sigma [445]Date/Time: 2020-08-25 07:32:33.3465 -0700Launch Time: 2020-08-25 07:32:13.2548 -0700OS Version: iPhone OS 13.6 (17G68)Release Type: UserBaseband Version: 2.07.00Report Version: 104Exception Type: EXC_CRASH (SIGKILL)Exception Codes: 0x0000000000000000, 0x0000000000000000Exception Note: EXC_CORPSE_NOTIFYTermination Reason: Namespace SPRINGBOARD, Code 0x8badf00dTermination Description: SPRINGBOARD, scene-create watchdog transgression: application<com.sofyapp.sigma>:279 exhausted real (wall clock) time allowance of 19.62 seconds | ProcessVisibility: Foreground | ProcessState: Running | WatchdogEvent: scene-create | WatchdogVisibility: Foreground | WatchdogCPUStatistics: ( | "Elapsed total CPU time (seconds): 6.400 (user 6.400, system 0.000), 5% CPU", | "Elapsed application CPU time (seconds): 0.567, 0% CPU" | )Triggered by Thread: 0Thread 0 name: Dispatch queue: com.apple.main-threadThread 0 Crashed:0 libsystem_kernel.dylib 0x00000001b909e7c0 0x1b909a000 + 183681 libdispatch.dylib 0x00000001b8f7baf0 0x1b8f78000 + 150882 libdispatch.dylib 0x00000001b8f7c188 0x1b8f78000 + 167763 sigma 0x000000010453d984 -[RCTBundleURLProvider isPackagerRunning:] + 4643204 (RCTBundleURLProvider.m:96)4 sigma 0x000000010453e004 -[RCTBundleURLProvider guessPackagerHost] + 4644868 (RCTBundleURLProvider.m:111)5 sigma 0x000000010453e220 -[RCTBundleURLProvider packagerServerHost] + 4645408 (RCTBundleURLProvider.m:125)6 sigma 0x000000010453e318 -[RCTBundleURLProvider jsBundleURLForBundleRoot:fallbackResource:fallbackExtension:] + 4645656 (RCTBundleURLProvider.m:135)7 sigma 0x000000010453e4b8 -[RCTBundleURLProvider jsBundleURLForBundleRoot:fallbackResource:] + 4646072 (RCTBundleURLProvider.m:148)8 sigma 0x00000001040d6e70 -[AppDelegate sourceURLForBridge:] + 28272 (AppDelegate.m:91)9 sigma 0x000000010453c38c -[RCTBridge setUp] + 4637580 (RCTBridge.m:343)10 sigma 0x000000010453b7bc -[RCTBridge initWithDelegate:bundleURL:moduleProvider:launchOptions:] + 4634556 (RCTBridge.m:226)11 sigma 0x000000010453b4e0 -[RCTBridge initWithDelegate:launchOptions:] + 4633824 (RCTBridge.m:197)12 sigma 0x00000001040d6a38 -[AppDelegate initializeReactNativeApp] + 27192 (AppDelegate.m:62)13 sigma 0x00000001040d68f8 -[AppDelegate application:didFinishLaunchingWithOptions:] + 26872 (AppDelegate.m:44)14 UIKitCore 0x00000001bd3f7ddc 0x1bc993000 + 1089890815 UIKitCore 0x00000001bd3f9bbc 0x1bc993000 + 1090655616 UIKitCore 0x00000001bd3ff588 0x1bc993000 + 1092954417 UIKitCore 0x00000001bcb6fd60 0x1bc993000 + 195312018 UIKitCore 0x00000001bd03b588 0x1bc993000 + 698100019 UIKitCore 0x00000001bcb70894 0x1bc993000 + 195598820 UIKitCore 0x00000001bcb702c0 0x1bc993000 + 195449621 UIKitCore 0x00000001bcb706b0 0x1bc993000 + 195550422 UIKitCore 0x00000001bcb6ff38 0x1bc993000 + 195359223 UIKitCore 0x00000001bcb74654 0x1bc993000 + 197179624 UIKitCore 0x00000001bcf59f8c 0x1bc993000 + 605786825 UIKitCore 0x00000001bd05522c 0x1bc993000 + 708663626 UIKitCore 0x00000001bcb74390 0x1bc993000 + 197108827 UIKitCore 0x00000001bd055114 0x1bc993000 + 708635628 UIKitCore 0x00000001bcb741e8 0x1bc993000 + 197066429 UIKitCore 0x00000001bc9da918 0x1bc993000 + 29314430 UIKitCore 0x00000001bc9d9418 0x1bc993000 + 28776831 UIKitCore 0x00000001bc9da648 0x1bc993000 + 29242432 UIKitCore 0x00000001bd3fd828 0x1bc993000 + 1092202433 UIKitCore 0x00000001bcf80780 0x1bc993000 + 621555234 FrontBoardServices 0x00000001be51c084 0x1be50f000 + 5338035 FrontBoardServices 0x00000001be542610 0x1be50f000 + 21044836 FrontBoardServices 0x00000001be526f40 0x1be50f000 + 9811237 FrontBoardServices 0x00000001be5422a4 0x1be50f000 + 20957238 libdispatch.dylib 0x00000001b8f7b5ac 0x1b8f78000 + 1374039 libdispatch.dylib 0x00000001b8f7e33c 0x1b8f78000 + 2540440 FrontBoardServices 0x00000001be5686c8 0x1be50f000 + 36628041 FrontBoardServices 0x00000001be568374 0x1be50f000 + 36542842 FrontBoardServices 0x00000001be5688e0 0x1be50f000 + 36681643 CoreFoundation 0x00000001b9254d14 0x1b91a8000 + 70786044 CoreFoundation 0x00000001b9254c68 0x1b91a8000 + 70768845 CoreFoundation 0x00000001b92543c4 0x1b91a8000 + 70547646 CoreFoundation 0x00000001b924f1fc 0x1b91a8000 + 68454047 CoreFoundation 0x00000001b924ebc8 0x1b91a8000 + 68295248 GraphicsServices 0x00000001c36305cc 0x1c362d000 + 1377249 UIKitCore 0x00000001bd401744 0x1bc993000 + 1093818050 sigma 0x00000001040d71b4 main + 29108 (main.m:14)51 libdyld.dylib 0x00000001b90cb384 0x1b90ca000 + 4996
I'm really not sure what to do here - can't fix the error until I fix it. I saw some similar issues on searching on Google but they had a line regarding Facebook library in the crash report so they were able to isolate the error. In my case, I don't see where the issue is happening either.
An important thing to note here is that my app has been exported from Expo.