I use this solution to print problems in debug builds and run:
void uncaughtExceptionHandler(NSException *exception) { NSLog(@"CRASH: %@", exception); NSLog(@"Stack Trace: %@", [exception callStackSymbols]); } - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { #if DEBUG NSSetUncaughtExceptionHandler(&uncaughtExceptionHandler); #endif return YES; }
source share