线程1程序收到信号'SIGABRT'

时间:2011-11-30 18:36:55

标签: ios xcode

刚尝试编译多视图应用程序并收到此线程1程序收到的信号'SIGABRT'。崩溃报告显示:

2011-11-30 10:24:11.193 View Switcher[2200:f803] *** 
Terminating app due to uncaught exception 'NSInternalInconsistencyException', 
reason: 'Could not load NIB in bundle: 
'NSBundle </Users/pdenlinger/Library/Application Support/iPhone Simulator/5.0/Applications/E331E162-9DDC-4C8F-AAB2-F9E8B9FA2BE1/View Switcher.app> (loaded)' with name 'Switch View''

第一次抛出调用堆栈:

(0x13bc052 0x154dd0a 0x1364a78 0x13649e9 0x231838 0xd8e2c 0xd93a9 0xd95cb 0x2a53 0x119d6 0x128a6 0x21743 0x221f8 0x15aa9 0x12a6fa9 0x13901c5 0x12f5022 0x12f390a 0x12f2db4 0x12f2ccb 0x122a7 0x13a9b 0x27d8 0x2735)
terminate called throwing an exceptionsharedlibrary apply-load-rules all
Current language:  auto; currently objective-c
(gdb) 

我认为它无法加载XIB,但我无法弄清楚原因。 我不知道这意味着什么,请告知我是否需要发布额外的代码来清理。谢谢。

1 个答案:

答案 0 :(得分:0)

您是否检查过以确保您要加载的视图是否指定了正确的NIB?这可能只是一个错字。

MyViewController *myView = [[MyViewController alloc] initWithNib:@"MyViewController" bundle:nil];

CodeSense无法检测您何时填写笔尖名称,因此请检查。

相关问题