简体   繁体   English

Xcode 4.6突然出现SIGABRT错误

[英]Xcode 4.6 suddenly giving SIGABRT error

I've been trying to make an application, upto this point it was working correctly, loading two different views and stuff, but as soon as I tried creating a separate UI for 4 inch devices it started giving the 'SIGABRT' error while launching. 我一直在尝试制作一个应用程序,到目前为止,它可以正常工作,加载了两个不同的视图和内容,但是,当我尝试为4英寸设备创建单独的UI时,它在启动时就开始出现“ SIGABRT”错误。
I've tried reverting back, restarting, clearing Simulator, and shit but nothing works. 我尝试还原,重新启动,清除模拟器,然后拉屎,但没有任何效果。 Even the backup that was working perfectly earlier has failed to launch… ❕ screenshot 即使是运行良好的备份也无法启动…❕ 截图

LOG Snippet: 日志片段:

"*** 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) "

What can be wrong? 有什么事吗 The View is connected to the File`s owner 视图已连接到文件的所有者

Debuger says, that you must connect your root view in code with view in .xib Go to the your view controller's .xib file and click right button of mouse in its view and connect your view with files owner: 调试器说,您必须将代码中的根视图与.xib中的视图连接。转到视图控制器的.xib文件,然后在其视图中单击鼠标右键,然后将视图与文件所有者连接: 在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM