Skip to content

Instantly share code, notes, and snippets.

@sugumura
Created May 9, 2013 13:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sugumura/5547369 to your computer and use it in GitHub Desktop.
Save sugumura/5547369 to your computer and use it in GitHub Desktop.
iOSのコールスタックを表示するためのmainファイル。毎度見つけるのが面倒なのでメモっておく。
#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