Debugging Sigabrt error on Main


The dreaded Sigabrt error in Xcode is as useless as censored. To help debug it, wrap it in a Try/Catch. That should give you a more meaningful error. Happy debugging!!

int main(int argc, char *argv[])
    int retVal = 0;
    @autoreleasepool {
        @try {
            retVal = UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
        @catch (NSException *exception) {
            NSLog(@"Exception - %@",[exception description]);
    return retVal;

No Comments

You can leave the first : )

Leave a Reply

Your email address will not be published. Required fields are marked *

Please Do the Math      

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: