我只是使用react-native init初始化一个新应用,然后使用react-native run-ios --device在真实的ios设备上运行该应用。
构建成功,应用已安装并启动,显示启动屏幕并立即崩溃。 (在模拟器上,该应用运行良好)
设备为iPhone XR(13.5),它发生在其他ios设备上
这是设备的日志:
Incident Identifier: 3A2CE960-5ECD-43B8-96E8-EAC608A2475F
CrashReporter Key: 5d15f9ae22981721699fb5658943f2b35381377a
Hardware Model: iPhone11,8
Process: xxx [2796]
Path: /private/var/containers/Bundle/Application/024F7D23-D381-4F05-9F95-75F3AB589DAE/xxx.app/xxx
Identifier: org.reactjs.native.example.xxx
Version: 1 (1.0)
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: org.reactjs.native.example.xxx [1682]
Date/Time: 2020-09-01 20:50:19.1317 +0300
Launch Time: 2020-09-01 20:49:59.0333 +0300
OS Version: iPhone OS 13.5 (17F75)
Release Type: User
Baseband Version: 2.06.00
Report Version: 104
Exception Type: EXC_CRASH (SIGKILL)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: Namespace SPRINGBOARD, Code 0x8badf00d
Termination Description: SPRINGBOARD, scene-create watchdog transgression: application<org.reactjs.native.example.xxx>:2796 exhausted real (wall clock) time allowance of 18.80 seconds | ProcessVisibility: Foreground | ProcessState: Running | WatchdogEvent: scene-create | WatchdogVisibility: Foreground | WatchdogCPUStatistics: ( | "Elapsed total CPU time (seconds): 9.990 (user 9.990, system 0.000), 8% CPU", | "Elapsed application CPU time (seconds): 3.199, 3% CPU" | )
Triggered by Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x00000001ba82c7c0 semaphore_wait_trap + 8
1 libdispatch.dylib 0x00000001ba708880 _dispatch_sema4_wait + 28
2 libdispatch.dylib 0x00000001ba708f18 _dispatch_semaphore_wait_slow + 132
3 xxx 0x00000001050d7f88 -[RCTBundleURLProvider isPackagerRunning:] + 5390216 (RCTBundleURLProvider.m:92)
4 xxx 0x00000001050d8520 -[RCTBundleURLProvider guessPackagerHost] + 5391648 (RCTBundleURLProvider.m:108)
5 xxx 0x00000001050d873c -[RCTBundleURLProvider packagerServerHost] + 5392188 (RCTBundleURLProvider.m:122)
6 xxx 0x00000001050d8814 -[RCTBundleURLProvider jsBundleURLForBundleRoot:fallbackURLProvider:] + 5392404 (RCTBundleURLProvider.m:132)
7 xxx 0x00000001050d8a40 -[RCTBundleURLProvider jsBundleURLForBundleRoot:fallbackResource:fallbackExtension:] + 5392960 (RCTBundleURLProvider.m:147)
8 xxx 0x00000001050d8b5c -[RCTBundleURLProvider jsBundleURLForBundleRoot:fallbackResource:] + 5393244 (RCTBundleURLProvider.m:155)
9 xxx 0x0000000104bba588 -[AppDelegate sourceURLForBridge:] + 25992 (AppDelegate.m:52)
10 xxx 0x00000001050d68c4 -[RCTBridge setUp] + 5384388 (RCTBridge.m:307)
11 xxx 0x00000001050d5c3c -[RCTBridge initWithDelegate:bundleURL:moduleProvider:launchOptions:] + 5381180 (RCTBridge.m:177)
12 xxx 0x00000001050d5960 -[RCTBridge initWithDelegate:launchOptions:] + 5380448 (RCTBridge.m:154)
13 xxx 0x0000000104bb9fec -[AppDelegate application:didFinishLaunchingWithOptions:] + 24556 (AppDelegate.m:34)
14 UIKitCore 0x00000001beba7988 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 360
15 UIKitCore 0x00000001beba9768 -[UIApplication _callInitializationDelegatesWithActions:forCanvas:payload:fromOriginatingProcess:] + 5104
16 UIKitCore 0x00000001bebaf164 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1256
17 UIKitCore 0x00000001be31f03c -[_UISceneLifecycleMultiplexer completeApplicationLaunchWithFBSScene:transitionContext:] + 152
18 UIKitCore 0x00000001be7ead68 _UIScenePerformActionsWithLifecycleActionMask + 112
19 UIKitCore 0x00000001be31fb70 __101-[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:]_block_invoke + 212
20 UIKitCore 0x00000001be31f59c -[_UISceneLifecycleMultiplexer _performBlock:withApplicationOfDeactivationReasons:fromReasons:] + 296
21 UIKitCore 0x00000001be31f98c -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:] + 756
22 UIKitCore 0x00000001be31f214 -[_UISceneLifecycleMultiplexer uiScene:transitionedFromState:withTransitionContext:] + 340
23 UIKitCore 0x00000001be323930 __186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block_invoke_2 + 196
24 UIKitCore 0x00000001be709604 +[BSAnimationSettings+ 6059524 (UIKit) tryAnimatingWithSettings:actions:completion:] + 856
25 UIKitCore 0x00000001be804a0c _UISceneSettingsDiffActionPerformChangesWithTransitionContext + 260
26 UIKitCore 0x00000001be32366c __186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block_invoke + 156
27 UIKitCore 0x00000001be8048f4 _UISceneSettingsDiffActionPerformActionsWithDelayForTransitionContext + 108
28 UIKitCore 0x00000001be3234c4 -[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:] + 392
29 UIKitCore 0x00000001be189ba4 __64-[UIScene scene:didUpdateWithDiff:transitionContext:completion:]_block_invoke + 640
30 UIKitCore 0x00000001be1886a4 -[UIScene _emitSceneSettingsUpdateResponseForCompletion:afterSceneUpdateWork:] + 256
31 UIKitCore 0x00000001be1898d4 -[UIScene scene:didUpdateWithDiff:transitionContext:completion:] + 236
32 UIKitCore 0x00000001bebad3fc -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 552
33 UIKitCore 0x00000001be72fe08 -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 376
34 FrontBoardServices 0x00000001bfccaffc -[FBSSceneImpl _callOutQueue_agent_didCreateWithTransitionContext:completion:] + 440
35 FrontBoardServices 0x00000001bfcf15a0 __86-[FBSWorkspaceScenesClient sceneID:createWithParameters:transitionContext:completion:]_block_invoke.168 + 116
36 FrontBoardServices 0x00000001bfcd5ebc -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 240
37 FrontBoardServices 0x00000001bfcf1234 __86-[FBSWorkspaceScenesClient sceneID:createWithParameters:transitionContext:completion:]_block_invoke + 344
38 libdispatch.dylib 0x00000001ba70833c _dispatch_client_callout + 20
39 libdispatch.dylib 0x00000001ba70b0d4 _dispatch_block_invoke_direct + 264
40 FrontBoardServices 0x00000001bfd176c4 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 48
41 FrontBoardServices 0x00000001bfd17370 -[FBSSerialQueue _queue_performNextIfPossible] + 432
42 FrontBoardServices 0x00000001bfd178dc -[FBSSerialQueue _performNextFromRunLoopSource] + 32
43 CoreFoundation 0x00000001ba9e3af4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28
44 CoreFoundation 0x00000001ba9e3a48 __CFRunLoopDoSource0 + 84
45 CoreFoundation 0x00000001ba9e3198 __CFRunLoopDoSources0 + 196
46 CoreFoundation 0x00000001ba9ddf38 __CFRunLoopRun + 796
47 CoreFoundation 0x00000001ba9dd8f4 CFRunLoopRunSpecific + 480
48 GraphicsServices 0x00000001c4df4604 GSEventRunModal + 164
49 UIKitCore 0x00000001bebb1358 UIApplicationMain + 1944
50 xxx 0x0000000104bba6f4 main + 26356 (main.m:7)
51 libdyld.dylib 0x00000001ba8592dc start + 4
Thread 1:
0 libsystem_pthread.dylib 0x00000001ba7759c0 start_wqthread + 0
Thread 2:
0 libsystem_pthread.dylib 0x00000001ba7759c0 start_wqthread + 0
Thread 3 name: com.apple.uikit.eventfetch-thread
Thread 3:
0 libsystem_kernel.dylib 0x00000001ba82c784 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001ba82bba8 mach_msg + 76
2 CoreFoundation 0x00000001ba9e3314 __CFRunLoopServiceMachPort + 152
3 CoreFoundation 0x00000001ba9de0a0 __CFRunLoopRun + 1156
4 CoreFoundation 0x00000001ba9dd8f4 CFRunLoopRunSpecific + 480
5 Foundation 0x00000001bad26b18 -[NSRunLoop+ 31512 (NSRunLoop) runMode:beforeDate:] + 232
6 Foundation 0x00000001bad269f0 -[NSRunLoop+ 31216 (NSRunLoop) runUntilDate:] + 92
7 UIKitCore 0x00000001bec57840 -[UIEventFetcher threadMain] + 156
8 Foundation 0x00000001bae60c10 __NSThread__start__ + 864
9 libsystem_pthread.dylib 0x00000001ba76d8fc _pthread_start + 168
10 libsystem_pthread.dylib 0x00000001ba7759d4 thread_start + 8
Thread 4:
0 libsystem_pthread.dylib 0x00000001ba7759c0 start_wqthread + 0
Thread 5:
0 libsystem_pthread.dylib 0x00000001ba7759c0 start_wqthread + 0
Thread 6:
0 libsystem_kernel.dylib 0x00000001ba851078 poll + 8
1 xxx 0x00000001054ebce8 poll_dispatch + 188
2 xxx 0x00000001054e325c event_base_loop + 608
3 xxx 0x0000000104d78504 (anonymous namespace)::EventBaseBackend::eb_event_base_loop(int) + 1852676 (EventBase.cpp:104)
4 xxx 0x0000000104d6a500 folly::EventBase::loopBody(int, bool) + 1795328 (EventBase.cpp:397)
5 xxx 0x0000000104d69ef8 folly::EventBase::loop() + 1793784 (EventBase.cpp:315)
6 xxx 0x0000000104d6c184 folly::EventBase::loopForever() + 1802628 (EventBase.cpp:538)
7 xxx 0x0000000104e818e0 folly::run(folly::EventBaseManager*, folly::EventBase*, folly::Baton<true, std::__1::atomic>*, folly::Range<char const*> const&) + 2939104 (ScopedEventBaseThread.cpp:43)
8 xxx 0x0000000104e85e2c decltype(std::__1::forward<void (*)(folly::EventBaseManager*, folly::EventBase*, folly::Baton<true, std::__1::atomic>*, folly::Range<char const*> const&)>(fp)(std::__1::forward<folly::EventBaseManager*>(fp0), std::__1::forward<folly::EventBase*>(fp0), std::__1::forward<folly::Baton<true, std::__1::atomic>*>(fp0), std::__1::forward<folly::Range<char const*> >(fp0))) std::__1::__invoke<void (*)(folly::EventBaseManager*, folly::EventBase*, folly::Baton<true, std::__1::atomic>*, folly::Range<char const*> const&), folly::EventBaseManager*, folly::EventBase*, folly::Baton<true, std::__1::atomic>*, folly::Range<char const*> >(void (*&&)(folly::EventBaseManager*, folly::EventBase*, folly::Baton<true, std::__1::atomic>*, folly::Range<char const*> const&), folly::EventBaseManager*&&, folly::EventBase*&&, folly::Baton<true, std::__1::atomic>*&&, folly::Range<char const*>&&) + 2956844 (type_traits:4425)
9 xxx 0x0000000104e85d18 void std::__1::__thread_execute<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void (*)(folly::EventBaseManager*, folly::EventBase*, folly::Baton<true, std::__1::atomic>*, folly::Range<char const*> const&), folly::EventBaseManager*, folly::EventBase*, folly::Baton<true, std::__1::atomic>*, folly::Range<char const*>, 2ul, 3ul, 4ul, 5ul>(std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void (*)(folly::EventBaseManager*, folly::EventBase*, folly::Baton<true, std::__1::atomic>*, folly::Range<char const*> const&), folly::EventBaseManager*, folly::EventBase*, folly::Baton<true, std::__1::atomic>*, folly::Range<char const*> >&, std::__1::__tuple_indices<2ul, 3ul, 4ul, 5ul>) + 2956568 (thread:342)
10 xxx 0x0000000104e850e0 void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void (*)(folly::EventBaseManager*, folly::EventBase*, folly::Baton<true, std::__1::atomic>*, folly::Range<char const*> const&), folly::EventBaseManager*, folly::EventBase*, folly::Baton<true, std::__1::atomic>*, folly::Range<char const*> > >(void*) + 2953440 (thread:351)
11 libsystem_pthread.dylib 0x00000001ba76d8fc _pthread_start + 168
12 libsystem_pthread.dylib 0x00000001ba7759d4 thread_start + 8
Thread 7:
0 libsystem_kernel.dylib 0x00000001ba851078 poll + 8
1 xxx 0x00000001054ebce8 poll_dispatch + 188
2 xxx 0x00000001054e325c event_base_loop + 608
3 xxx 0x0000000104d78504 (anonymous namespace)::EventBaseBackend::eb_event_base_loop(int) + 1852676 (EventBase.cpp:104)
4 xxx 0x0000000104d6a500 folly::EventBase::loopBody(int, bool) + 1795328 (EventBase.cpp:397)
5 xxx 0x0000000104d69ef8 folly::EventBase::loop() + 1793784 (EventBase.cpp:315)
6 xxx 0x0000000104d6c184 folly::EventBase::loopForever() + 1802628 (EventBase.cpp:538)
7 xxx 0x0000000104e818e0 folly::run(folly::EventBaseManager*, folly::EventBase*, folly::Baton<true, std::__1::atomic>*, folly::Range<char const*> const&) + 2939104 (ScopedEventBaseThread.cpp:43)
8 xxx 0x0000000104e85e2c decltype(std::__1::forward<void (*)(folly::EventBaseManager*, folly::EventBase*, folly::Baton<true, std::__1::atomic>*, folly::Range<char const*> const&)>(fp)(std::__1::forward<folly::EventBaseManager*>(fp0), std::__1::forward<folly::EventBase*>(fp0), std::__1::forward<folly::Baton<true, std::__1::atomic>*>(fp0), std::__1::forward<folly::Range<char const*> >(fp0))) std::__1::__invoke<void (*)(folly::EventBaseManager*, folly::EventBase*, folly::Baton<true, std::__1::atomic>*, folly::Range<char const*> const&), folly::EventBaseManager*, folly::EventBase*, folly::Baton<true, std::__1::atomic>*, folly::Range<char const*> >(void (*&&)(folly::EventBaseManager*, folly::EventBase*, folly::Baton<true, std::__1::atomic>*, folly::Range<char const*> const&), folly::EventBaseManager*&&, folly::EventBase*&&, folly::Baton<true, std::__1::atomic>*&&, folly::Range<char const*>&&) + 2956844 (type_traits:4425)
9 xxx 0x0000000104e85d18 void std::__1::__thread_execute<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void (*)(folly::EventBaseManager*, folly::EventBase*, folly::Baton<true, std::__1::atomic>*, folly::Range<char const*> const&), folly::EventBaseManager*, folly::EventBase*, folly::Baton<true, std::__1::atomic>*, folly::Range<char const*>, 2ul, 3ul, 4ul, 5ul>(std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void (*)(folly::EventBaseManager*, folly::EventBase*, folly::Baton<true, std::__1::atomic>*, folly::Range<char const*> const&), folly::EventBaseManager*, folly::EventBase*, folly::Baton<true, std::__1::atomic>*, folly::Range<char const*> >&, std::__1::__tuple_indices<2ul, 3ul, 4ul, 5ul>) + 2956568 (thread:342)
10 xxx 0x0000000104e850e0 void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void (*)(folly::EventBaseManager*, folly::EventBase*, folly::Baton<true, std::__1::atomic>*, folly::Range<char const*> const&), folly::EventBaseManager*, folly::EventBase*, folly::Baton<true, std::__1::atomic>*, folly::Range<char const*> > >(void*) + 2953440 (thread:351)
11 libsystem_pthread.dylib 0x00000001ba76d8fc _pthread_start + 168
12 libsystem_pthread.dylib 0x00000001ba7759d4 thread_start + 8
Thread 8 name: FutureTimekeepr
Thread 8:
0 libsystem_kernel.dylib 0x00000001ba851078 poll + 8
1 xxx 0x00000001054ebce8 poll_dispatch + 188
2 xxx 0x00000001054e325c event_base_loop + 608
3 xxx 0x0000000104d78504 (anonymous namespace)::EventBaseBackend::eb_event_base_loop(int) + 1852676 (EventBase.cpp:104)
4 xxx 0x0000000104d6a500 folly::EventBase::loopBody(int, bool) + 1795328 (EventBase.cpp:397)
5 xxx 0x0000000104d69ef8 folly::EventBase::loop() + 1793784 (EventBase.cpp:315)
6 xxx 0x0000000104d6c184 folly::EventBase::loopForever() + 1802628 (EventBase.cpp:538)
7 xxx 0x0000000104ef9848 folly::ThreadWheelTimekeeper::ThreadWheelTimekeeper()::$_0::operator()() const + 3430472 (ThreadWheelTimekeeper.cpp:32)
8 xxx 0x0000000104ef97dc decltype(std::__1::forward<folly::ThreadWheelTimekeeper::ThreadWheelTimekeeper()::$_0>(fp)()) std::__1::__invoke<folly::ThreadWheelTimekeeper::ThreadWheelTimekeeper()::$_0>(folly::ThreadWheelTimekeeper::ThreadWheelTimekeeper()::$_0&&) + 3430364 (type_traits:4425)
9 xxx 0x0000000104ef9738 void std::__1::__thread_execute<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, folly::ThreadWheelTimekeeper::ThreadWheelTimekeeper()::$_0>(std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, folly::ThreadWheelTimekeeper::ThreadWheelTimekeeper()::$_0>&, std::__1::__tuple_indices<>) + 3430200 (thread:342)
10 xxx 0x0000000104ef8e3c void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, folly::ThreadWheelTimekeeper::ThreadWheelTimekeeper()::$_0> >(void*) + 3427900 (thread:351)
11 libsystem_pthread.dylib 0x00000001ba76d8fc _pthread_start + 168
12 libsystem_pthread.dylib 0x00000001ba7759d4 thread_start + 8
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x000000000000000e x1: 0x0000000000000003 x2: 0x0000000000000028 x3: 0x0000000000000030
x4: 0x0000000000000603 x5: 0x0000000000000000 x6: 0x0000000000000000 x7: 0x0000000000000403
x8: 0x0000000000000000 x9: 0x0000000000000000 x10: 0x0000a1a2086df06f x11: 0x0000c1a2086df06f
x12: 0x0000003700000001 x13: 0x0000000000000005 x14: 0x0000000000000100 x15: 0x0000000000000100
x16: 0xffffffffffffffdc x17: 0x00000001fc805480 x18: 0x0000000000000000 x19: 0x0000000282a73ce0
x20: 0x0000000282a73ca0 x21: 0xffffffffffffffff x22: 0x0000000000000001 x23: 0x00000001f6efebb2
x24: 0x0000000000000000 x25: 0x00000001f6f5ff6f x26: 0x000000002b870064 x27: 0x0000000000000010
x28: 0x0000000000000000 fp: 0x000000016b248f40 lr: 0x00000001ba708880
sp: 0x000000016b248f30 pc: 0x00000001ba82c7c0 cpsr: 0x60000000
esr: 0x56000080 Address size fault