简体   繁体   中英

iOS SIGABRT error on Build & Run

When I try to build any project, occasionally I'll get a SIGABRT from this method in main.m :

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

It doesn't matter if i've modified the project or if I'm building a template that was just created, I'll occasionally get this error. If I close the debugger where the exception was raised and Build & Run again, the error goes away and the app runs fine.

This happens with any and all projects, ones that I have modified and ones that I have created from a template that were not modified. It always throws the first time I build it and every time I make a change to the code after that.

The only output displayed is " (lldb) ".

Using XCode 4.6.2 on Mac OSX 10.8.4.

It seems like it's a problem with permissions. I had the same problem time ago, and I discovered that it was happening if you create a project in a certain directory, and then you displace it in another directory and you try to run it from there.

Maybe there is a smarter solution, but I can tell you that if you delete the project and create a new one, copying all the files from the old project to the new one, without displacing it in another directory, it will not crash.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM