mRs- / sentry-cocoa

The official Sentry SDK for iOS/tvOS/macOS/watchOS

Home Page:https://sentry.io/for/cocoa/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool


Official Sentry SDK for iOS/macOS/tvOS/watchOS(1).

Travis platforms langauges CocoaPods Shield CocoaPods Shield Carthage compatible codecov

This SDK is written in Objective-C but also works for Swift projects.

import Sentry

func application(application: UIApplication,
    didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {

    // Create a Sentry client and start crash handler
    do {
        Client.shared = try Client(dsn: "___PUBLIC_DSN___")
        try Client.shared?.startCrashHandler()
    } catch let error {
        print("\(error)")
        // Wrong DSN or KSCrash not installed
    }

    return true
}

(1)limited symbolication support

About

The official Sentry SDK for iOS/tvOS/macOS/watchOS

https://sentry.io/for/cocoa/

License:MIT License


Languages

Language:Objective-C 56.1%Language:C 42.2%Language:Ruby 0.6%Language:C++ 0.5%Language:Swift 0.4%Language:Shell 0.1%Language:Makefile 0.0%