0

In the main.m file of a project I am trying to create in XCode, I keep getting this error: Thread 1:Signal Sigabrt.
The project was running fine until it began to crash on start due to this error. Is anything wrong with this line, or does anyone have any suggestions concerning what else may have caused this?

return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));

Matthias Bauch
  • 89,811
  • 20
  • 225
  • 247

1 Answers1

0

Your main method should look something like this under ARC:

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

Are you sure your AppDelegate class file (and associated xib files, if any) is indeed named "AppDelegate"?

Alfie Hanssen
  • 16,964
  • 12
  • 68
  • 74