【问题标题】:Xcode 4.6 suddenly giving SIGABRT errorXcode 4.6 突然给出 SIGABRT 错误
【发布时间】:2013-08-20 08:44:22
【问题描述】:

我一直在尝试制作一个应用程序,到目前为止它工作正常,加载了两个不同的视图和内容,但是当我尝试为 4 英寸设备创建单独的 UI 时,它开始出现“SIGABRT”错误启动时。
我试过恢复,重新启动,清除模拟器,但没有任何效果。 即使是之前运行良好的备份也无法启动...... ❕screenshot

日志片段:

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

【问题讨论】:

  • 你能在加载 ViewController 的地方显示/添加代码吗?

标签: ios iphone xcode ios-simulator sigabrt


【解决方案1】:

调试器说,您必须将代码中的根视图与 .xib 中的视图连接起来 转到您的视图控制器的 .xib 文件并在其视图中单击鼠标右键并将您的视图与文件所有者连接:

【讨论】:

  • 对不起,我听不懂
  • 它是你应用的根视图控制器吗?
猜你喜欢
  • 2012-02-03
  • 1970-01-01
  • 2012-06-01
  • 1970-01-01
  • 2012-02-08
  • 2022-06-10
  • 2018-05-21
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多