我是新來的ios,並得到一個崩潰日誌如下。
我的問題是,「+ 373」是什麼意思在「[ICLRootViewController addHomeScreenViewController] + 373」?如何在ICLRootViewController.m中找到相關的行?第373行與函數addHomeScreenViewController()完全沒有關係。
2017-02-09 16:23:28.117 Demo[98834:4764956] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Can't find view controller.' *** First throw call stack: ( 0 CoreFoundation 0x0000000111f77d4b __exceptionPreprocess + 171 1 libobjc.A.dylib 0x0000000110dfb21e objc_exception_throw + 48 2 CoreFoundation 0x0000000111f7be42 +[NSException raise:format:arguments:] + 98 3 Foundation 0x000000010cda066d -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 195 4 Demo 0x0000000109bb63c5 -[ICLRootViewController addHomeScreenViewController] + 373 5 Demo 0x0000000109bc252e -[ICLRootViewController onNewsButtonClicked] + 542 6 Demo 0x0000000109a2b9ce __51-[ICLHomeScreenToolbarViewController initWebToolbar]_block_invoke_2 + 62 7 Demo 0x0000000109dee0f1 -[ICLWebViewToolbar didClickNewsButton:] + 305 8 UIKit 0x000000010f5b18bc -[UIApplication sendAction:to:from:forEvent:] + 83 9 UIKit 0x000000010f737c38 -[UIControl sendAction:to:forEvent:] + 67 10 UIKit 0x000000010f737f51 -[UIControl _sendActionsForEvents:withEvent:] + 444 11 UIKit 0x000000010f736e4d -[UIControl touchesEnded:withEvent:] + 668 12 UIKit 0x000000010f61f545 -[UIWindow _sendTouchesForEvent:] + 2747 13 UIKit 0x000000010f620c33 -[UIWindow sendEvent:] + 4011 14 Demo 0x0000000109a96a80 -[ICLInteractionDetectionWindow sendEvent:] + 688 15 UIKit 0x000000010f5cd9ab -[UIApplication sendEvent:] + 371 16 UIKit 0x000000010fdba72d __dispatchPreprocessedEventFromEventQueue + 3248 17 UIKit 0x000000010fdb3463 __handleEventQueue + 4879 18 CoreFoundation 0x0000000111f1c761 __CFRUNLOICL_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17 19 CoreFoundation 0x0000000111f0198c __CFRunLoopDoSources0 + 556 20 CoreFoundation 0x0000000111f00e76 __CFRunLoopRun + 918 21 CoreFoundation 0x0000000111f00884 CFRunLoopRunSpecific + 420 22 GraphicsServices 0x000000011473ba6f GSEventRunModal + 161 23 UIKit 0x000000010f5afc68 UIApplicationMain + 159 24 Demo 0x000000010981da1f main + 111 25 libdyld.dylib 0x0000000113ccd68d start + 1
非常感謝!
原因:'找不到視圖控制器。' –
你想做什麼? –
@AbhishekGupta嗯,我的意思是如何回溯崩潰日誌,並找到哪一行代碼使這次崩潰。 – iclinux