什么?意味着iOS的
问题描述:
我是新来的iOS,以及简单的应用程序我试图代码如下崩溃:什么?意味着iOS的
2014-07-18 22:21:19.006 Weather Client[1191:60b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIViewController _loadViewFromNibNamed:bundle:] was unable to load a nib named "WeatherClientViewController"'
*** First throw call stack:
(
0 CoreFoundation 0x017ec1e4 __exceptionPreprocess + 180
1 libobjc.A.dylib 0x0156b8e5 objc_exception_throw + 44
2 CoreFoundation 0x017ebfbb +[NSException raise:format:] + 139
3 UIKit 0x003497d6 -[UIViewController _loadViewFromNibNamed:bundle:] + 505
4 UIKit 0x00349e9d -[UIViewController loadView] + 302
5 UIKit 0x0034a0d3 -[UIViewController loadViewIfRequired] + 78
6 UIKit 0x0034a5d9 -[UIViewController view] + 35
7 UIKit 0x0026a267 -[UIWindow addRootViewControllerViewIfPossible] + 66
8 UIKit 0x0026a5ef -[UIWindow _setHidden:forced:] + 312
9 UIKit 0x0026a86b -[UIWindow _orderFrontWithoutMakingKey] + 49
10 UIKit 0x002753c8 -[UIWindow makeKeyAndVisible] + 65
11 Weather Client 0x000023eb -[AppDelegate application:didFinishLaunchingWithOptions:] + 715
12 UIKit 0x0022514f -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 309
13 UIKit 0x00225aa1 -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 1810
14 UIKit 0x0022a667 -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 824
15 UIKit 0x0023ef92 -[UIApplication handleEvent:withNewEvent:] + 3517
16 UIKit 0x0023f555 -[UIApplication sendEvent:] + 85
17 UIKit 0x0022c250 _UIApplicationHandleEvent + 683
18 GraphicsServices 0x037e1f02 _PurpleEventCallback + 776
19 GraphicsServices 0x037e1a0d PurpleEventCallback + 46
20 CoreFoundation 0x01767ca5 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 53
21 CoreFoundation 0x017679db __CFRunLoopDoSource1 + 523
22 CoreFoundation 0x0179268c __CFRunLoopRun + 2156
23 CoreFoundation 0x017919d3 CFRunLoopRunSpecific + 467
24 CoreFoundation 0x017917eb CFRunLoopRunInMode + 123
25 UIKit 0x00229d9c -[UIApplication _run] + 840
26 UIKit 0x0022bf9b UIApplicationMain + 1225
27 Weather Client 0x00002e3d main + 141
28 libdyld.dylib 0x01e33701 start + 1
29 ??? 0x00000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
什么我不知道是什么东西的意义???在第29行。我试过谷歌搜索,只有参考?与三元运营商有关。谁能告诉我什么?手段?
答
什么都不剩调用堆栈上:
27 Weather Client 0x00002e3d main + 141
28 libdyld.dylib 0x01e33701 start + 1
29 ??? 0x00000001 0x0 + 1
第28帧就是start
(运行时启动代码)叫你的程序的main
功能。在你的程序的一生中没有任何事情发生在这之前。
无论出于何种原因,在第一个实际帧之前的堆栈中存在一些值1
,并且堆栈行走代码显然不知道(无效)地址1
处的函数是什么。
真的没什么好担心的。