diff --git a/Application/AppController.m b/Application/AppController.m index 419da0abe..f5d4267fa 100644 --- a/Application/AppController.m +++ b/Application/AppController.m @@ -150,7 +150,11 @@ static AppController *kAppController = nil; } - (void)awakeFromNib { +#if DEBUG + [[NSUserDefaults standardUserDefaults] registerDefaults:@{ @"NSApplicationCrashOnExceptions": @(NO) }]; +#else [[NSUserDefaults standardUserDefaults] registerDefaults:@{ @"NSApplicationCrashOnExceptions": @(YES) }]; +#endif [FIRApp configure];