Any of you knows how can I log any crash exception from iOS app?.
I forcing a crash on my viewController:
- (void)viewDidLoad {
[super viewDidLoad];
NSArray *myArray = [NSArray new];
NSLog(@"%@", [myArray objectAtIndex:0]);
}
and I try to capture the crash in the console in my AppDelegate:
void uncaughtExceptionHandler(NSException *exception) {
NSLog(@"CRASH: %@", exception);
NSLog(@"Stack Trace: %@", [exception callStackSymbols]);
}
void SignalHandler(int sig) {
NSLog(@"CRASH: %d",sig);
}
But this didn't work. Any of you knows how can register any crashing exception in iOS?