1,新建一个单视图工程
2,新建cocopod
3,加入vzinspector
4,运行工程
5,崩溃
崩溃内容:
2018-02-12 10:54:37.030029+0800 Inspector[18228:2964874] [ApplicationLifecycle] Windows were created before application initialzation completed. This may result in incorrect visual appearance.
2018-02-12 10:54:37.030691+0800 Inspector[18228:2964874] +[CATransaction synchronize] called within transaction
2018-02-12 10:54:37.078381+0800 Inspector[18228:2964874] *** Assertion failure in -[UIApplication _runWithMainScene:transitionContext:completion:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit_Sim/UIKit-3698.33.6/UIApplication.m:3529
2018-02-12 10:54:37.133128+0800 Inspector[18228:2964874] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Application windows are expected to have a root view controller at the end of application launch'
*** First throw call stack:
(
0 CoreFoundation 0x000000010c37912b __exceptionPreprocess + 171
1 libobjc.A.dylib 0x000000010b2c3f41 objc_exception_throw + 48
2 CoreFoundation 0x000000010c37e2f2 +[NSException raise:format:arguments:] + 98
3 Foundation 0x00000001088fad69 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 193
4 UIKit 0x000000010911d051 -[UIApplication _runWithMainScene:transitionContext:completion:] + 3102
5 UIKit 0x00000001094e66f8 __111-[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:]_block_invoke + 924
6 UIKit 0x00000001098bc4c8 +[_UICanvas _enqueuePostSettingUpdateTransactionBlock:] + 153
7 UIKit 0x00000001094e62f1 -[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:] + 249
8 UIKit 0x00000001094e6b6b -[__UICanvasLifecycleMonitor_Compatability activateEventsOnly:withContext:completion:] + 696
9 UIKit 0x0000000109e64a69 __82-[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:]_block_invoke + 262
10 UIKit 0x0000000109e64922 -[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:] + 444
11 UIKit 0x0000000109b419c8 __125-[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:]_block_invoke + 221
12 UIKit 0x0000000109d40b06 _performActionsWithDelayForTransitionContext + 100
13 UIKit 0x0000000109b4188b -[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:] + 231
14 UIKit 0x00000001098bbb25 -[_UICanvas scene:didUpdateWithDiff:transitionContext:completion:] + 392
15 UIKit 0x000000010911b36a -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 523
16 UIKit 0x00000001096f6605 -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 369
17 FrontBoardServices 0x00000001110b5cc0 -[FBSSceneImpl _didCreateWithTransitionContext:completion:] + 338
18 FrontBoardServices 0x00000001110be7b5 __56-[FBSWorkspace client:handleCreateScene:withCompletion:]_block_invoke_2 + 235
19 libdispatch.dylib 0x000000010c99633d _dispatch_client_callout + 8
20 libdispatch.dylib 0x000000010c99b9f3 _dispatch_block_invoke_direct + 592
21 FrontBoardServices 0x00000001110ea498 FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK + 24
22 FrontBoardServices 0x00000001110ea14e -[FBSSerialQueue _performNext] + 464
23 FrontBoardServices 0x00000001110ea6bd -[FBSSerialQueue _performNextFromRunLoopSource] + 45
24 CoreFoundation 0x000000010c31c101 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 17
25 CoreFoundation 0x000000010c3bbf71 __CFRunLoopDoSource0 + 81
26 CoreFoundation 0x000000010c300a19 __CFRunLoopDoSources0 + 185
27 CoreFoundation 0x000000010c2fffff __CFRunLoopRun + 1279
28 CoreFoundation 0x000000010c2ff889 CFRunLoopRunSpecific + 409
29 GraphicsServices 0x000000010f79f9c6 GSEventRunModal + 62
30 UIKit 0x000000010911e5d6 UIApplicationMain + 159
31 Inspector 0x0000000107bfb61f main + 111
32 libdyld.dylib 0x000000010ca12d81 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
1,新建一个单视图工程
2,新建cocopod
3,加入vzinspector
4,运行工程
5,崩溃
崩溃内容:
2018-02-12 10:54:37.030029+0800 Inspector[18228:2964874] [ApplicationLifecycle] Windows were created before application initialzation completed. This may result in incorrect visual appearance.
2018-02-12 10:54:37.030691+0800 Inspector[18228:2964874] +[CATransaction synchronize] called within transaction
2018-02-12 10:54:37.078381+0800 Inspector[18228:2964874] *** Assertion failure in -[UIApplication _runWithMainScene:transitionContext:completion:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit_Sim/UIKit-3698.33.6/UIApplication.m:3529
2018-02-12 10:54:37.133128+0800 Inspector[18228:2964874] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Application windows are expected to have a root view controller at the end of application launch'
*** First throw call stack:
(
0 CoreFoundation 0x000000010c37912b __exceptionPreprocess + 171
1 libobjc.A.dylib 0x000000010b2c3f41 objc_exception_throw + 48
2 CoreFoundation 0x000000010c37e2f2 +[NSException raise:format:arguments:] + 98
3 Foundation 0x00000001088fad69 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 193
4 UIKit 0x000000010911d051 -[UIApplication _runWithMainScene:transitionContext:completion:] + 3102
5 UIKit 0x00000001094e66f8 __111-[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:]_block_invoke + 924
6 UIKit 0x00000001098bc4c8 +[_UICanvas _enqueuePostSettingUpdateTransactionBlock:] + 153
7 UIKit 0x00000001094e62f1 -[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:] + 249
8 UIKit 0x00000001094e6b6b -[__UICanvasLifecycleMonitor_Compatability activateEventsOnly:withContext:completion:] + 696
9 UIKit 0x0000000109e64a69 __82-[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:]_block_invoke + 262
10 UIKit 0x0000000109e64922 -[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:] + 444
11 UIKit 0x0000000109b419c8 __125-[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:]_block_invoke + 221
12 UIKit 0x0000000109d40b06 _performActionsWithDelayForTransitionContext + 100
13 UIKit 0x0000000109b4188b -[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:] + 231
14 UIKit 0x00000001098bbb25 -[_UICanvas scene:didUpdateWithDiff:transitionContext:completion:] + 392
15 UIKit 0x000000010911b36a -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 523
16 UIKit 0x00000001096f6605 -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 369
17 FrontBoardServices 0x00000001110b5cc0 -[FBSSceneImpl _didCreateWithTransitionContext:completion:] + 338
18 FrontBoardServices 0x00000001110be7b5 __56-[FBSWorkspace client:handleCreateScene:withCompletion:]_block_invoke_2 + 235
19 libdispatch.dylib 0x000000010c99633d _dispatch_client_callout + 8
20 libdispatch.dylib 0x000000010c99b9f3 _dispatch_block_invoke_direct + 592
21 FrontBoardServices 0x00000001110ea498 FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK + 24
22 FrontBoardServices 0x00000001110ea14e -[FBSSerialQueue _performNext] + 464
23 FrontBoardServices 0x00000001110ea6bd -[FBSSerialQueue _performNextFromRunLoopSource] + 45
24 CoreFoundation 0x000000010c31c101 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 17
25 CoreFoundation 0x000000010c3bbf71 __CFRunLoopDoSource0 + 81
26 CoreFoundation 0x000000010c300a19 __CFRunLoopDoSources0 + 185
27 CoreFoundation 0x000000010c2fffff __CFRunLoopRun + 1279
28 CoreFoundation 0x000000010c2ff889 CFRunLoopRunSpecific + 409
29 GraphicsServices 0x000000010f79f9c6 GSEventRunModal + 62
30 UIKit 0x000000010911e5d6 UIApplicationMain + 159
31 Inspector 0x0000000107bfb61f main + 111
32 libdyld.dylib 0x000000010ca12d81 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)