An easy-to-use class to handle crash on iOS.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
MXCrashHandler-Demo
MXCrashHandler
LICENSE
MXCrashHandler.podspec
README.md

README.md

MXCrashHandler-in-Objective-C

MXCrashHandler is an easy-to-use class to handle crash on iOS.

Installation with CocoaPods

pod 'MXCrashHandler'

Usage

Add the code blew to AppDelegate.m:

#import "MXCrashHandler.h"
@interface AppDelegate () <MXCrashHandlerDelegate>
[MXCrashHandler installWithThread:[NSThread currentThread]];
[[MXCrashHandler sharedHandler] setDelegate:self];
- (void)crashHandler:(MXCrashHandler *)handler didReceiveException:(NSException *)exception {
  NSLog(@"%@", exception);
}

Swift Version

See OhCrap