iOS Objective-C 应用程序因异常原因崩溃 [英] iOS Objective-C App crashing for unusual reason

查看:48
本文介绍了iOS Objective-C 应用程序因异常原因崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序崩溃,错误代码为:SI​​GABRT.我做了大量的研究,但没有一个SIGABRT 解决方案"有帮助.这是应用在 iOS 模拟器上崩溃后控制台中的内容:

My app is crashing with the error code: SIGABRT. Ive done a ton of research and none of the "SIGABRT solutions" have ever helped. This is what is in the console after app crashes on the iOS Simulator:

Terminating app due to uncaught exception 
  'NSInternalInconsistencyException', 
  reason: '-[UIViewController _loadViewFromNibNamed:bundle:] 
  loaded the "ViewController" nib but the view outlet was not set.'

如果有人能帮助我那就太好了!

If anyone can help me that would be great!

推荐答案

打开 ViewController 的 xib 文件,右键单击 File's Owner 占位符,并确保设置了视图属性.如果不是,请控制单击并拖动到视图.

Open up your ViewController's xib file, right click on the File's Owner placeholder, and make sure that your view property is set. If it's not, control click and drag to the view.

这篇关于iOS Objective-C 应用程序因异常原因崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆