我是 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
.
真的没什么好担心的。
关于ios - 是什么???在 iOS 中的意思,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24834037/
欢迎光临 OStack程序员社区-中国程序员成长平台 (https://ostack.cn/) | Powered by Discuz! X3.4 |