Skip to content

getsentry/sentry-cocoa

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Mar 19, 2024
05789c6 · Mar 19, 2024
Mar 18, 2024
Feb 20, 2024
Mar 18, 2024
Mar 18, 2024
Nov 29, 2023
Mar 15, 2024
Nov 29, 2023
Mar 18, 2024
Mar 18, 2024
Mar 18, 2024
Mar 12, 2024
Nov 29, 2023
Mar 4, 2024
Nov 3, 2022
May 20, 2020
May 4, 2023
Mar 4, 2024
Oct 27, 2020
Nov 18, 2022
Jun 20, 2018
May 8, 2017
Jan 29, 2024
Oct 5, 2023
Dec 6, 2022
May 5, 2023
Jun 6, 2023
Jun 23, 2023
Oct 5, 2023
Mar 19, 2024
Nov 17, 2023
May 26, 2023
Feb 15, 2024
Apr 6, 2016
Oct 7, 2020
Mar 18, 2024
Mar 19, 2024
Mar 17, 2023
Mar 18, 2024
Mar 18, 2024
Mar 18, 2024
Mar 7, 2023

Repository files navigation

Sentry

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

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.

Where is the master branch?

We renamed the default branch from master to main.

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.

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

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