线程 1:信号 SIGBART 错误 [英] Thread 1: Signal SIGBART Error
问题描述
int main(int argc, char * argv[]){
@autoreleasepool {
return UIApplicationMain(argc, argv, nil, NSStringFromClass([StudentCouncilAppDelegate class]));
}
}
我对 XCode 很陌生,只是想创建一个应用程序.但是,当我运行我的代码时,它会停止并显示 Thread 1: Signal SIGBART.我不知道如何修复它.我试图通过调试来继续它,但它崩溃了.然后当我尝试读取调试错误时,没有.有谁知道如何解决这一问题?请帮忙.我希望我可以发布它的屏幕截图,但我没有足够的声誉......
I am pretty new to XCode and just trying to create an app. However, when I run my code, it stops and says Thread 1: Signal SIGBART. I don't know how to fix it. I have tried to continue over it by debugging it, but then it crashes. Then when I try to read the debug error, none is there. Does anyone know how to fix this? Please help. I wish I could post a screenshot of it but I don't have enough reputation to...
起初它工作正常,但在我把这段代码放进去之后
At first it was working fine but after I put this code in
(IBAction)hideKeyboard:(id)sender {
[sender resignFirstResponder];
}
它停止工作了.
推荐答案
对于 SIGABRT 来说,它主要是访问非法地址或非法操作(除以 0).如果可以,请检查寄存器.此外,您可以发布一些错误发生位置的代码.
For SIGABRT its mostly a access to an illegal address or illegal operation (divide by 0). Check the registers, if you can. Also, you could post some code of where the error is occurring.
这篇关于线程 1:信号 SIGBART 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!