sigabrt 没有错误信息 [英] sigabrt with no error message

查看:26
本文介绍了sigabrt 没有错误信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个奇怪的问题,我在主循环中得到一个 Sigabrt,但没有显示错误消息,我在互联网上查看了很多,但没有找到任何有用的东西.所以我的问题是,如何在没有错误消息的情况下跟踪导致 sigabrt 的原因?

I have a strange problem, i am getting a Sigabrt in main loop, but no error message is displayed, i've looked quite a lot on this in the internet but didn't manage to find anything useful. So my question would be, how to track what is causing sigabrt with no error message?

提前致谢.

推荐答案

当您的程序崩溃时,您可以转到调试器控制台并键入 bt(回溯),这将使您了解什么崩溃时正在执行代码.顶级项目可能不是您的代码,但如果您继续向下移动,您最终应该会在那里看到您的一些东西.

When your program crashes, you can go to the debugger console and type bt (backtrace) which will give you an idea of what code was being executed at the time of the crash. The top level items may not be your code, but if you keep moving down you should see something of yours in there eventually.

如果您的代码中没有任何调用,那么这些 SIGABRT 错误通常与您的 xib 文件有关,在 xib 文件中会丢失或重命名或以其他方式更改未反映在您的代码中的内容.

If there aren't any calls from your code then these SIGABRT errors are often related to your xib files, there will be something missing or renamed or otherwise changed in a xib file that hasn't been reflected in your code.

这篇关于sigabrt 没有错误信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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