Xcode 4.6突然出现SIGABRT错误

时间:2013-08-18 11:55:53

标签: ios iphone xcode ios-simulator sigabrt

我一直在努力创建一个应用程序,到目前为止它正常工作,加载两个不同的视图和内容,但是当我尝试为4英寸设备创建单独的UI时,它开始给出'SIGABRT'错误发射时。
我已经尝试恢复,重新启动,清除模拟器和狗屎,但没有任何作用。 即使是早期运行良好的备份也无法启动...... ❕screenshot

LOG片段:

"*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[UIViewController _loadViewFromNibNamed:bundle:] loaded the "ViewController" nib but the view outlet was not set.'  
*** First throw call stack:
(0x1f65012 0x181de7e 0x1f64deb 0x8428c8 0x842dc8 0x842ff8 0x843232 0x7923d5 0x79276f 0x792905 0x79b917 0x262b 0x75f157 0x75f747 0x76094b 0x771cb5 0x772beb 0x764698 0x219edf9 0x219ead0 0x1edabf5 0x1eda962 0x1f0bbb6 0x1f0af44 0x1f0ae1b 0x76017a 0x761ffc 0x2332 0x2265)
libc++abi.dylib: terminate called throwing an exception
(lldb) "

有什么不对? The View is connected to the File`s owner

1 个答案:

答案 0 :(得分:1)

Debuger说,您必须将代码中的根视图与.xib中的视图相关联 转到视图控制器的.xib文件,在其视图中单击鼠标右键,将视图与文件所有者连接: enter image description here