11

当我没有将 xcode 升级到 ios 6 时,我的项目运行良好。但升级后我出现了这个错误......

collect2: ld 以信号 6 [Abort trap: 6] ld(22918,0x7fff72e6f960) malloc: * 对象 0x7fe300c4d130 的错误:未分配指针被释放 *在 malloc_error_break 中设置断点以调试命令 /Applications/Xcode.app/Contents /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/llvm-gcc-4.2 失败,退出代码为 1

我试图在网上找到这个但没有找到任何类似的问题或任何解决方案..请尽快寻求帮助....

4

5 回答 5

5

突然之间这也发生在我身上,clear and build 解决了我的问题。

于 2018-03-08T16:26:03.690 回答
2

从 Edit Scheme -> Run -> Uncheck Thread Sanitizer 中禁用线程清理程序。

于 2020-05-27T07:38:47.497 回答
1

I also got a problem with exit code signal 6. In my case, the problem was, I defined the UIStoryboard at Build as: with a iOS version higher than the UIDevice I was installing the app.

Maybe you are going to check this, didn't have this problem before, so might be possible it solves yours too.

Here a screenshot where to go inside the File Inspectore:

enter image description here

于 2015-06-18T13:49:31.567 回答
1

我遇到了错误。这是由于UserDefault类的错误使用引起的。如您所知,这些UserDefault方法应该在 UI 线程(主线程)中执行,并且您仅限于要保存的类型。我在非主线程中调用了这些UserDefault方法,我也尝试保存struct. 然后我从调试器收到消息:由于信号 6 而终止。最后,我将执行线程设为主线程和 type dictionary。我克服了这个错误。

于 2017-06-01T13:31:02.143 回答
1

这与在后台线程中更新 UI 有关。您应该在主线程中更改 UI。

于 2017-10-26T15:41:00.433 回答