Skip to content

sbooth/SFBCrashReporter

Repository files navigation

SFBCrashReporter

Swift versions Platforms

SFBCrashReporter is a framework for submitting application crash logs to an HTTP server.

Installation

Swift Package Manager

Add a package dependency to https://github.com/sbooth/SFBCrashReporter in Xcode.

Manual or Custom Build

  1. Clone the SFBCrashReporter repository.
  2. swift build.

Usage

Adding SFBCrashReporter support to your application is easy:

  1. Add the URL for crash log submission as SFBCrashReporterCrashSubmissionURL to your application's Info.plist

  2. 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];
}

Server Support

Adding support to your HTTP server to receive the crash logs is also easy. SFBCrashReporter comes with an example PHP script that will e-mail the submitted crash logs to a specified email account.

  1. Install PHP!
  2. Modify handle_crash_report.php as appropriate.

About

A crash reporting framework for macOS

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors