Swift Package Index

Sentry

https://github.com/getsentry/sentry-cocoa.git

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


Compatibility

  • 6.2.1, 7.0.0-alpha.0, and master
    5.3
    5.2
    5.1
    5.0
    4.2
  • 6.2.1 and 7.0.0-alpha.0
    iOS
    macOS(Intel)
    macOS(ARM)
    Linux
    tvOS
    watchOS
  • master
    iOS
    macOS(Intel)
    macOS(ARM)
    Linux
    tvOS
    watchOS

Bad software is everywhere, and we're tired of it. Sentry is on a mission to help developers write better software faster, so we can get back to enjoying technology. If you want to join us Check out our open positions

Build codebeat badge codecov.io CocoaPods compadible Carthage compatible SwiftPM compatible platforms Swift Package Index Discord Chat

This SDK is written in Objective-C but also provides a nice Swift interface.

Initialization

Remember to call this as early in your application life cycle as possible Ideally in applicationDidFinishLaunching in AppDelegate

import Sentry

// ....

SentrySDK.start { options in
    options.dsn = "___PUBLIC_DSN___"
    options.debug = true // Helpful to see what's going on
}    
@import Sentry;

// ....

[SentrySDK startWithConfigureOptions:^(SentryOptions *options) {
    options.dsn = @"___PUBLIC_DSN___";
    options.debug = @YES; // Helpful to see what's going on
}];

For more information checkout the docs.

(1)limited symbolication support and no crash handling.

Resources

  • Documentation
  • Forum
  • Discord Chat
  • Stack Overflow
  • Code of Conduct
  • Twitter Follow