Created
May 9, 2013 13:15
-
-
Save sugumura/5547369 to your computer and use it in GitHub Desktop.
iOSのコールスタックを表示するためのmainファイル。毎度見つけるのが面倒なのでメモっておく。
This file contains 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
#import <UIKit/UIKit.h> | |
int main(int argc, char *argv[]) { | |
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; | |
int retVal; | |
@try { | |
retVal = UIApplicationMain(argc, argv, nil, @"AppController"); | |
} @catch (NSException *exception) { | |
NSLog(@"%@", [exception callStackSymbols]); | |
@throw exception; | |
} @finally { | |
[pool release]; | |
} | |
return retVal; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment