首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >是什么??iOS平均值

是什么??iOS平均值
EN

Stack Overflow用户
提问于 2014-07-18 21:26:18
回答 1查看 509关注 0票数 2

我是iOS新手,我尝试编写的简单应用程序崩溃了,如下所示:

代码语言:javascript
运行
复制
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行。我试过搜索,唯一的参考资料是?与三元操作符有关。谁能告诉我什么?意思是?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2014-07-18 21:30:06

调用堆栈上什么都没有了:

代码语言:javascript
运行
复制
27  Weather Client                      0x00002e3d main + 141
28  libdyld.dylib                       0x01e33701 start + 1
29  ???                                 0x00000001 0x0 + 1

框架28是start (运行时启动代码)调用程序的main函数的地方。在此之前(在您的程序生命周期中)不会发生任何事情。

不管出于什么原因,在第一个真正的框架之前,堆栈上有一些值1,而且堆栈遍历代码显然不知道(无效的)地址1上有什么函数。

真的没什么好担心的。

票数 4
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/24834037

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档