线程 1:信号 SIGABRT IOS Xcode 5

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/19369310/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 04:06:10  来源:igfitidea点击:

Thread 1: signal SIGABRT IOS Xcode 5

iphoneiosxcode

提问by Farhad

int main(int argc, char * argv[])
{
    @autoreleasepool {
        return UIApplicationMain(argc, argv, nil, NSStringFromClass([ProReaderAppDelegate class]));
    }
}

This happen after i try to some of the view in IOS Simulator

这是在我尝试查看 IOS 模拟器中的某些视图后发生的

Crash log

崩溃日志

回答by Casper Schultz

I had the same problem! It seems that you have linked, lets say a button/label/imageView etc. and you don't use it or they are duplicates: this ERROR will occur. So, go to your Connection inspector:

我有同样的问题!看起来你已经链接了,比如说一个按钮/标签/图像视图等,你不使用它或者它们是重复的:这个错误会发生。因此,转到您的连接检查器:

  • open your storyboard
  • check all your connections and see/check, if you have any duplicates and remove them.
  • 打开你的故事板
  • 检查您的所有连接并查看/检查是否有任何重复项并删除它们。

This should get rid of your problem :)

这应该可以解决您的问题:)

Good luck!

祝你好运!

回答by AechoLiu

In order to find what's wrong.

为了找出问题所在。

First, set the Exception Breakpoint, switch to the Breakpoint Navigator:

首先,设置异常断点,切换到断点导航器

Breakpoint Navigator

断点导航器

Second, at the bottom is a small + button. Click this and select Add Exception Breakpoint:

其次,底部是一个小 + 按钮。单击它并选择添加异常断点

Add Exception Breakpoint

添加异常断点

More detail can be found HERE.

更多细节可以在这里找到。

回答by user2825622

Hey buddy boo I often get this same as you and usually it's because I set an object up and linked it with an IBAction then I delete it.

嘿,伙计,我经常遇到和你一样的情况,通常是因为我设置了一个对象并将其与 IBAction 链接,然后我将其删除。

I hope that helps you <3 best of luck of friend

我希望能帮助你 <3 祝你好运

NEVER GIVE UP!!

永不放弃!!

回答by user3653985

For any others still having issues with this. I deleted my View controller connections via the connections inspector and then relinked them back to my IB Outlet properties and it solved my problem.

对于任何其他人仍然有这个问题。我通过连接检查器删除了我的视图控制器连接,然后将它们重新链接回我的 IB 插座属性,它解决了我的问题。

Hope that made sense!

希望这是有道理的!