我正在使用Xcode 9.1,但Xcode 9也出现了以下问题。
有时,在模拟器中运行应用程序并停止从Xcode执行后,模拟器陷入循环,快速无休止地打开/关闭同一个应用程序。
我对此问题的修复是再次从Xcode运行应用程序或退出模拟器。
似乎模拟器的操作系统不是关键因素,它已经发生在多个不同的模拟器上。
如果我尝试通过按Home键关闭应用程序,SpringBoard会引发崩溃:
以下是崩溃的相关摘录:
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Application Specific Information:
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'need the old view controller for <SBLayoutElement: 0x600001a7f3c0; identifier: [application's ID]; layoutRole: primary; layoutElementMode: default> {
supportedLayoutRoles = primary;
layoutAttributes = none;
viewControllerClass = SBMainWorkspaceApplicationSceneLayoutElementViewController;
}'
terminating with uncaught exception of type NSException
abort() called
CoreSimulator 494.22.7 - Device: iPhone 6 - Runtime: iOS 11.1 (15B87) - DeviceType: iPhone 6
Application Specific Backtrace 1:
0 CoreFoundation 0x0000000115bc61ab __exceptionPreprocess + 171
1 libobjc.A.dylib 0x000000011525bf41 objc_exception_throw + 48
2 CoreFoundation 0x0000000115bcb372 +[NSException raise:format:arguments:] + 98
3 Foundation 0x0000000111085089 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 193
4 SpringBoard 0x0000000108e5f17a SpringBoard + 2863482
5 SpringBoard 0x00000001090980bc SpringBoard + 5193916
6 SpringBoard 0x0000000108e5e9c9 SpringBoard + 2861513
7 SpringBoard 0x00000001090be78d SpringBoard + 5351309
8 SpringBoard 0x0000000108e60902 SpringBoard + 2869506
9 SpringBoard 0x0000000108e17094 SpringBoard + 2568340
10 SpringBoard 0x0000000108f5d197 SpringBoard + 3903895
11 SpringBoard 0x0000000108f5d253 SpringBoard + 3904083
12 SpringBoard 0x0000000108f5d86b SpringBoard + 3905643
13 SpringBoard 0x0000000108f5c4a0 SpringBoard + 3900576
14 SpringBoard 0x0000000108f5aea9 SpringBoard + 3894953
15 BaseBoard 0x000000010e749091 __22-[BSTransaction begin]_block_invoke + 178
16 BaseBoard 0x000000010e74f7b7 -[BSTransaction _preventTransactionCompletionForReason:ignoringAuditHistory:andExecuteBlock:] + 66
17 BaseBoard 0x000000010e748c4b -[BSTransaction begin] + 890
18 BaseBoard 0x000000010e749136 __22-[BSTransaction begin]_block_invoke + 343
19 BaseBoard 0x000000010e74f7b7 -[BSTransaction _preventTransactionCompletionForReason:ignoringAuditHistory:andExecuteBlock:] + 66
20 BaseBoard 0x000000010e748c4b -[BSTransaction begin] + 890
21 SpringBoard 0x0000000108beea28 SpringBoard + 305704
22 SpringBoard 0x0000000108bf1875 SpringBoard + 317557
23 SpringBoard 0x0000000108bf1597 SpringBoard + 316823
24 SpringBoard 0x0000000108befee4 SpringBoard + 311012
25 BaseBoard 0x000000010e7569c8 -[BSEventQueue _processNextEvent] + 349
26 SpringBoard 0x0000000108beeb3b SpringBoard + 305979
27 libdispatch.dylib 0x0000000116dd8273 _dispatch_call_block_and_release + 12
28 libdispatch.dylib 0x0000000116dd92b5 _dispatch_client_callout + 8
29 libdispatch.dylib 0x0000000116de3496 _dispatch_main_queue_callback_4CF + 1260
30 CoreFoundation 0x0000000115b88ee9 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
31 CoreFoundation 0x0000000115b4d592 __CFRunLoopRun + 2402
32 CoreFoundation 0x0000000115b4c9b9 CFRunLoopRunSpecific + 409
33 GraphicsServices 0x00000001115e89c6 GSEventRunModal + 62
34 UIKit 0x000000010c0fb5e8 UIApplicationMain + 159
35 FrontBoard 0x000000010e4efdfa FBSystemAppMain + 1010
36 libdyld.dylib 0x0000000116e4dd81 start + 1
37 ??? 0x0000000000000001 0x0 + 1
是否有针对此的已知修复程序?