Skip to content

Instantly share code, notes, and snippets.

@flandy84
Created February 5, 2012 12:06
Show Gist options
  • Save flandy84/1745047 to your computer and use it in GitHub Desktop.
Save flandy84/1745047 to your computer and use it in GitHub Desktop.
int main(int argc, char *argv[])
{
@autoreleasepool {
@try {
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
}
@catch (NSException *exception) {
NSLog(@"Uncaught exception: %@", exception.name);
NSLog(@"reason: %@", exception.reason);
NSLog(@"userInfo: %@", exception.userInfo);
NSLog(@"Stack trace: %@", [exception callStackSymbols]);
@throw exception; //forward exception
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment