仅当从iOS 12设备上的应用商店下载时,iOS应用程序启动时崩溃
我有一个iOS应用程序,在所有设备上都能正常运行,除非它们使用的是iOS 12。我不确定是什么问题。我试着直接从我的笔记本电脑下载这个应用程序,效果很好。但是,当它从应用商店或TestFlight下载时,它会在启动时崩溃 这是我的崩溃日志:仅当从iOS 12设备上的应用商店下载时,iOS应用程序启动时崩溃,ios,swift,xcode,realm,Ios,Swift,Xcode,Realm,我有一个iOS应用程序,在所有设备上都能正常运行,除非它们使用的是iOS 12。我不确定是什么问题。我试着直接从我的笔记本电脑下载这个应用程序,效果很好。但是,当它从应用商店或TestFlight下载时,它会在启动时崩溃 这是我的崩溃日志: Exception Type: EXC_CRASH (SIGKILL) Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY T
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: com.X.X exhausted real (wall clock) time allowance of 18.98 seconds | ProcessVisibility: Background | ProcessState: Running | WatchdogEvent: scene-create | WatchdogVisibility: Foreground | WatchdogCPUStatistics: ( | "Elapsed total CPU time (seconds): 4.380 (user 4.380, system 0.000), 24% CPU", | "Elapsed application CPU time (seconds): 1.411, 8% CPU" | )
Triggered by Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x000000018b1f6ac4 __msync + 8
1 Realm 0x0000000101485044 realm::util::msync+ 3117124 (int, void*, unsigned long) + 216
2 Realm 0x0000000101391078 realm::GroupWriter::commit+ 2117752 (unsigned long) + 264
3 Realm 0x000000010138bde0 realm::SharedGroup::low_level_commit+ 2096608 (unsigned long long) + 344
4 Realm 0x000000010138b978 realm::SharedGroup::do_commit+ 2095480 () + 96
5 Realm 0x000000010138c184 realm::SharedGroup::commit_and_continue_as_read+ 2097540 () + 44
6 Realm 0x00000001011ceccc realm::_impl::RealmCoordinator::commit_write+ 273612 (realm::Realm&) + 76
7 Realm 0x00000001012a20f8 realm::Realm::commit_transaction+ 1138936 () + 168
8 Realm 0x0000000101271628 -[RLMRealm commitWriteTransactionWithoutNotifying:error:] + 288
9 RealmSwift 0x000000010172826c Realm.write<A>(withoutNotifying:_:) + 115308 (Realm.swift:280)
10 MYAPP 0x0000000100c7f820 specialized JSONSerializer.serialize(input:) + 178208 (JSONSerializer.swift:30)
11 MYAPP 0x0000000100cd6fa4 specialized AppDelegate.setUpRealm() + 536484 (AppDelegate.swift:235)
12 MYAPP 0x0000000100cd5e14 @objc AppDelegate.application(_:didFinishLaunchingWithOptions:) + 531988 (<compiler-generated>:20)
13 UIKitCore 0x00000001b7e400f0 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 412
14 UIKitCore 0x00000001b7e41854 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 3352
15 UIKitCore 0x00000001b7e46fe0 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1540
16 UIKitCore 0x00000001b770a2a4 __111-[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:]_block_invoke + 776
17 UIKitCore 0x00000001b771283c +[_UICanvas _enqueuePostSettingUpdateTransactionBlock:] + 160
18 UIKitCore 0x00000001b7709f28 -[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:] + 236
19 UIKitCore 0x00000001b770a818 -[__UICanvasLifecycleMonitor_Compatability activateEventsOnly:withContext:completion:] + 1064
20 UIKitCore 0x00000001b7708b64 __82-[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:]_block_invoke + 744
21 UIKitCore 0x00000001b770882c -[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:] + 428
22 UIKitCore 0x00000001b770d36c __125-[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:]_block_invoke + 220
23 UIKitCore 0x00000001b770e150 _performActionsWithDelayForTransitionContext + 112
24 UIKitCore 0x00000001b770d224 -[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:] + 244
25 UIKitCore 0x00000001b7711f24 -[_UICanvas scene:didUpdateWithDiff:transitionContext:completion:] + 360
26 UIKitCore 0x00000001b7e455e8 -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 540
27 UIKitCore 0x00000001b7a41e04 -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 360
28 FrontBoardServices 0x000000018dfd79fc -[FBSSceneImpl _didCreateWithTransitionContext:completion:] + 440
29 FrontBoardServices 0x000000018dfe140c __56-[FBSWorkspace client:handleCreateScene:withCompletion:]_block_invoke_2 + 256
30 FrontBoardServices 0x000000018dfe0c14 __40-[FBSWorkspace _performDelegateCallOut:]_block_invoke + 64
31 libdispatch.dylib 0x000000018b0997d4 _dispatch_client_callout + 16
32 libdispatch.dylib 0x000000018b03e5dc _dispatch_block_invoke_direct$VARIANT$mp + 224
33 FrontBoardServices 0x000000018e012040 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 40
34 FrontBoardServices 0x000000018e011cdc -[FBSSerialQueue _performNext] + 408
35 FrontBoardServices 0x000000018e012294 -[FBSSerialQueue _performNextFromRunLoopSource] + 52
36 CoreFoundation 0x000000018b5ecf1c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
37 CoreFoundation 0x000000018b5ece9c __CFRunLoopDoSource0 + 88
38 CoreFoundation 0x000000018b5ec784 __CFRunLoopDoSources0 + 176
39 CoreFoundation 0x000000018b5e76c0 __CFRunLoopRun + 1004
40 CoreFoundation 0x000000018b5e6fb4 CFRunLoopRunSpecific + 436
41 GraphicsServices 0x000000018d7e879c GSEventRunModal + 104
42 UIKitCore 0x00000001b7e48c38 UIApplicationMain + 212
43 MYAPP 0x0000000100c5a274 main + 25204 (LanguageExampleCell.swift:16)
44 libdyld.dylib 0x000000018b0aa8e0 start + 4
异常类型:EXC_崩溃(SIGKILL)
异常代码:0x0000000000,0x0000000000000000
例外说明:EXC_尸体通知
终止原因:名称空间跳板,代码0x8badf00d
终止描述:跳板,场景创建看门狗越轨:com.X.X耗尽了18.98秒的实时(挂钟)时间余量|进程可见性:背景|进程状态:运行|看门狗事件:场景创建|看门狗可见性:前景|看门狗定制:(|)已用CPU总时间(秒):4.380(用户4.380,系统0.000),24%CPU“,|”已用应用程序CPU时间(秒):1.411,8%CPU“|)
由以下线程触发:0
线程0名称:调度队列:com.apple.main-Thread
线程0崩溃:
0 libsystem_kernel.dylib 0x000000018b1f6ac4_uumsync+8
1领域0x0000000101485044领域::util::msync+3117124(int,void*,无符号长)+216
2领域0x0000000101391078领域::GroupWriter::提交+2117752(无符号长)+264
3领域0x000000010138bde0领域::共享组::低级别提交+2096608(无符号长)+344
4领域0x000000010138b978领域::共享组::do_提交+2095480()+96
5领域0x000000010138c184领域::共享组::提交和继续作为读取+2097540()+44
6领域0x00000001011ceccc领域::_impl::RealmCoordinator::commit_write+273612(领域::领域&+76
7领域0x00000001012a20f8领域::领域::提交_事务+1138936()+168
8领域0x0000000101271628-[RLMRealm CommitWriteTransaction未通知:错误:][288
9 RealmSwift 0x000000010172826c Realm.write(不通知:——)+115308(Realm.swift:280)
10 MYAPP 0x0000000100c7f820专用JSONSerializer.serialize(输入:)+178208(JSONSerializer.swift:30)
11 MYAPP 0x0000000100cd6fa4专用AppDelegate.setUpRealm()+536484(AppDelegate.swift:235)
12 MYAPP 0x0000000100cd5e14@objc AppDelegate.application(使用选项完成启动)+531988(:20)
13 UIKitCore 0x00000001b7e400f0-[UIApplication\u处理的elegateCallbackwithoptions:isSuspended:restoreState:+412
14 UIKitCore 0x00000001b7e41854-[UIApplication\u callInitializationDelegatesForMainScene:transitionContext:+3352
15 UIKitCore 0x00000001b7e46fe0-[UIApplication\u在主场景中运行:transitionContext:completion:+1540
16 UIKitCore 0x00000001b770a2a4 \uuuu 111-[\uuuu UICanvasLifecycleMonitor \u兼容性\uu计划FirstCommitForScene:transition:firstActivation:completion:]\u block\u invoke+776
17 UIKitCore 0x00000001b771283c+[\u UICanvas\u enqueuePostSettingUpdateTransactionBlock:+160
18 UIKitCore 0x00000001b7709f28-[\uu UICanvasLifecycleMonitor\u Compatibility\u scheduleFirstCommitForScene:transition:firstActivation:completion:+236
19 UIKitCore 0x00000001b770a818-[\u UICanvasLifecycleMonitor\u Compatibility activateEventsOnly:withContext:completion:+1064
20 UIKitCore 0x00000001b7708b64\uuu82-[\uUIApplicationCanvas\uTransitionOnlyLifeCycleStateWithTransitionContext:completion:]\uBlock\uInvoke+744
21 UIKitCore 0x00000001b770882c-[\u UIApplicationCanvas\u TransitionOnlyLifeCycleStateWith TransitionContext:完成:][428
22 UIKitCore 0x00000001b770d36c\uuu 125-[\uUICanvasLifecycleSettingsDiffActionPerformancesforCases:withUpdatedScene:settingsDiff:fromSettings:transitionContext:][uBlock\uInvoke+220
23 UIKitCore 0x00000001b770e150_性能,带DelayforTransitionContext+112
24 UIKitCore 0x00000001b770d224-[\u UICanvasLifecycleSettingsDiffActionPerformancesforCase:withUpdatedScene:settingsDiff:fromSettings:transitionContext:+244
25 UIKitCore 0x00000001b7711f24-[\u UICanvas场景:didUpdateWithDiff:transitionContext:completion:+360
26 UIKitCore 0x00000001b7e455e8-[UIApplication工作区:didCreateScene:withTransitionContext:completion:+540
27 UIKitCore 0x00000001b7a41e04-[UIApplicationSceneClientAgent场景:未初始化事件:完成:][360
28 FrontBoardServices 0x000000018dfd79fc-[FBSSceneImpl_didCreateWithTransitionContext:completion:][440
29 FrontBoardServices 0x000000018dfe140c_u56-[FBSWorkspace客户端:HandleCreateSecene:withCompletion:][U block_invoke_2+256
30 FrontBoardServices 0x000000018dfe0c14 \uu 40-[FBSWorkspace\u PerformDeleteCallout:]\u block\u invoke+64
31 libdispatch.dylib 0x000000018b0997d4 _dispatch_client_callout+16
32 libdispatch.dylib 0x000000018b03e5dc_dispatch_block_invoke_direct$VARIANT$mp+224
33 FrontBoardServices 0x000000018e012040 u FBSSERIALQUEUE u正在调用u OUT u到u块u+40
34 FrontBoardServices 0x000000018e011cdc-[FBSSerialQueue\u performNext]+408
35 FrontBoardServices 0x000000018e012294-[FBSSerialQueue _performNextFromRunLoopSource]+52
36 CoreFoundation 0x000000018b5ecf1c\uuuu CFRUNLOOP\u正在调用\u OUT\u以执行\u源功能\uuuu+24
37 CoreFoundation 0x000000018b5ece9c__CFRunLoopDoSource0+88
38 CoreFoundation 0x000000018b5ec784