Sentry 5.2.0

Sentry 5.2.0

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Jul 2020
SPMSupports SPM

Maintained by Sentry, Philipp Hofmann, Bruno Garcia, Daniel Griesser.



Sentry 5.2.0

  • By
  • Sentry


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

Travis codebeat badge codecov.io CocoaPods compadible Carthage compatible SwiftPM compatible platforms

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

// ....

// Added in 5.1.6
SentrySDK.start { options in
    options.dsn = "___PUBLIC_DSN___"
    options.debug = true // Helpful to see what's going on
}    

// Or

// Added in 5.0.0
SentrySDK.start(options: [
    "dsn": "___PUBLIC_DSN___",
    "debug": true // Helpful to see what's going on
])
@import Sentry;

// ....

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

// Or

// Added in 5.0.0
[SentrySDK startWithOptions:@{
    @"dsn": @"___PUBLIC_DSN___",
    @"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
  • Stack Overflow
  • Code of Conduct
  • Twitter Follow