Thread 1: Signal SIGBART Error

巧了我就是萌 提交于 2019-12-11 12:47:43

问题


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

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];
}

it stopped working.


回答1:


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.



来源:https://stackoverflow.com/questions/24297393/thread-1-signal-sigbart-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!