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;

Leave a Reply

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

Please Do the Math