Back to Hammerspoon

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

Pods/Sentry/README.md

1.4.274.6 KB
Original Source
<div align="center"> <a href="https://sentry.io/?utm_source=github&utm_medium=logo" target="_blank">
</a>
</div>

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 <kbd>Check out our open positions</kbd>

[!NOTE] You are currently viewing the v8.x branch which contains the latest v8 release.

For the upcoming v9 release, please switch to the main branch and refer to the v9 CHANGELOG.

Official Sentry SDK for iOS / tvOS / macOS / watchOS <sup>(1)</sup>

Installation

SPM is the recommended way to include Sentry into your project, but we also support CocoaPods and Carthage, and provide pre-built XCFrameworks on our GitHub Releases page.

Initialization

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

swift
import Sentry

// ....

SentrySDK.start { options in
    options.dsn = "___PUBLIC_DSN___"
    options.debug = true // Helpful to see what's going on
}
objc
@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.

<sup>(1)</sup>limited symbolication support and no crash handling.

Blog posts

Mobile Vitals - Four Metrics Every Mobile Developer Should Care About.

How to use Sentry Attachments with Mobile Applications.

Close the Loop with User Feedback.

A Sanity Listicle for Mobile Developers.

Resources