SFBCrashReporter is a framework for submitting application crash logs to an HTTP server.
Adding SFBCrashReporter support to your application is easy:
-
Add the URL for crash log submission as
SFBCrashReporterCrashSubmissionURLto your application'sInfo.plist -
Add the following code to your application's delegate:
#import <SFBCrashReporter/SFBCrashReporter.h>
- (void) applicationDidFinishLaunching:(NSNotification *)aNotification
{
// Check for and send crash reports
[SFBCrashReporter checkForNewCrashes];
}Adding support to your HTTP server to receive the crash logs is also easy. SFBCrashReporter comes with a PHP script that will e-mail the submitted crash logs to a specified email account.
-
Install PHP!
-
Modify handle_crash_report.php as appropriate.