Created
February 5, 2012 12:06
-
-
Save flandy84/1745047 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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