sentry-cocoa
The official Sentry SDK for iOS, tvOS, macOS, watchOS, iPadOS and visionOS.
Safety scan
A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.
Check it deeper on your machine
It has changed since its scan on 11 Nov 2026.
As a Claude Code plugin, install it and then ask Claude Code:
/plugin marketplace add keithmackay/mackayi/plugin install scanskillsafety@mackayiDo a deep scan of https://github.com/getsentry/sentry-cocoa with scanskillsafety
Or from a terminal, clone it and run it:
git clone https://github.com/keithmackay/scanskillsafety-skill ~/.claude/skills/scanskillsafetynode ~/.claude/skills/scanskillsafety/cli.cjs --deep 'https://github.com/getsentry/sentry-cocoa'
It checks the exact commit: every file, its packages against OSV (api.osv.dev), how it compares with this page's scan (findsafeskills.com receives the repository's address), and, if you agree, Claude reading every file with your own Claude subscription. It never runs the code.
Badge for your README
Markdown
[](/listings/getsentry--sentry-cocoa)HTML
<a href="/listings/getsentry--sentry-cocoa"><img src="/api/listings/getsentry--sentry-cocoa/badge.svg" alt="findsafeskills safety rating" /></a>Install
Install instructions from the README
As written by the repo's author. findsafeskills has not verified these steps.
Sentry Wizard (Recommended)
The quickest way to get started:
brew install getsentry/tools/sentry-wizard && sentry-wizard -i ios
This patches your project and configures the SDK automatically.
Swift Package Manager (Compile from Source)
Use this repository to build the SDK from source:
**In Xcode:** File > Add Packages, then paste:
https://github.com/getsentry/sentry-cocoa.git
**In `Package.swift`:**
dependencies: [
.package(url: "https://github.com/getsentry/sentry-cocoa", from: "9.24.0"),
],
targets: [
.target(name: "YourApp", dependencies: [
.product(name: "SentrySPM", package: "sentry-cocoa"),
]),
]Pre-built XCFrameworks
For pre-built static binaries via SPM, use the [sentry-apple-binaries](https://github.com/getsentry/sentry-apple-binaries) repository.
You can also download XCFrameworks directly from [GitHub Releases](https://github.com/getsentry/sentry-cocoa/releases).
For all installation options (Objective-C, dynamic linking, manual install), see the [full installation docs](https://docs.sentry.io/platforms/apple/install/).
> [!NOTE] > CocoaPods support has been dropped. The last version available via CocoaPods is [9.19.1](https://github.com/getsentry/sentry-cocoa/releases/tag/9.19.1). Please migrate to SPM or XCFrameworks.
What was scanned
The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.
README.md · README · 117 lines
View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)
This file has changed since it was scanned, so this is not exactly the text that was scanned, and no line is marked. The findings are listed with the safety scan above.
- <div align="center">
- <a href="https://sentry.io/?utm_source=github&utm_medium=logo" target="_blank">
- <img src="https://sentry-brand.storage.googleapis.com/github-banners/github-sdk-cocoa.jpg" alt="Sentry for Apple">
- </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>](https://sentry.io/careers/)_
- > [!NOTE]
- > You are currently viewing the **`main`** branch which latest development version of **v9** release.
- >
- > For the latest **v8** release, please switch to the [`v8.x` branch](https://github.com/getsentry/sentry-cocoa/tree/v8.x) and refer to the [v8 CHANGELOG](https://github.com/getsentry/sentry-cocoa/blob/v8.x/CHANGELOG.md).
- # Official Sentry SDK for iOS / iPadOS / tvOS / macOS / watchOS <sup>(1)</sup> / visionOS
- [](https://github.com/getsentry/sentry-cocoa/actions/workflows/build.yml?query=branch%3Amain)
- [](https://swift.org/package-manager)
- [](https://swiftpackageindex.com/getsentry/sentry-cocoa)
- [](https://x.com/intent/follow?screen_name=sentry)
- [](https://discord.com/invite/sentry)
- # Installation
- ### Sentry Wizard (Recommended)
- The quickest way to get started:
- ```bash
- brew install getsentry/tools/sentry-wizard && sentry-wizard -i ios
- ```
- This patches your project and configures the SDK automatically.
- ### Swift Package Manager (Compile from Source)
- Use this repository to build the SDK from source:
- **In Xcode:** File > Add Packages, then paste:
- ```
- https://github.com/getsentry/sentry-cocoa.git
- ```
- **In `Package.swift`:**
- ```swift
- dependencies: [
- .package(url: "https://github.com/getsentry/sentry-cocoa", from: "9.24.0"),
- ],
- targets: [
- .target(name: "YourApp", dependencies: [
- .product(name: "SentrySPM", package: "sentry-cocoa"),
- ]),
- ]
- ```
- ### Pre-built XCFrameworks
- For pre-built static binaries via SPM, use the [sentry-apple-binaries](https://github.com/getsentry/sentry-apple-binaries) repository.
- You can also download XCFrameworks directly from [GitHub Releases](https://github.com/getsentry/sentry-cocoa/releases).
- For all installation options (Objective-C, dynamic linking, manual install), see the [full installation docs](https://docs.sentry.io/platforms/apple/install/).
- > [!NOTE]
- > CocoaPods support has been dropped. The last version available via CocoaPods is [9.19.1](https://github.com/getsentry/sentry-cocoa/releases/tag/9.19.1). Please migrate to SPM or XCFrameworks.
- # Initialization
- _Remember to call this as early in your application life cycle as possible_
- Ideally in `applicationDidFinishLaunching` in `AppDelegate`
- ```swift
- import SentrySwift // The SentrySPM product. Use `import Sentry` with the pre-built XCFrameworks.
- // ....
- SentrySDK.start { options in
- options.dsn = "___PUBLIC_DSN___"
- options.debug = true // Helpful to see what's going on
- }
- ```
- For Objective-C, depend on the `SentryObjC` product instead of `SentrySPM` (or `SentryObjC-Static` / `SentryObjC-Dynamic` for the pre-built frameworks):
- ```objc
- #import <SentryObjC/SentryObjC.h>
- // ....
- [SentryObjCSDK startWithConfigureOptions:^(SentryObjCOptions *options) {
- options.dsn = @"___PUBLIC_DSN___";
- options.debug = YES; // Helpful to see what's going on
- }];
- ```
- For more information checkout the [docs](https://docs.sentry.io/platforms/apple).
- <sup>(1)</sup>limited symbolication support and no crash handling.
- # Logging Integrations
- Forward logs from popular logging libraries to [Sentry Logs](https://docs.sentry.io/platforms/apple/logs/). Each integration is a separate Swift package, so you only pull in the dependencies you use:
- - [swift-log](https://github.com/apple/swift-log): [sentry-apple-swift-log](https://github.com/getsentry/sentry-apple-swift-log)
- - [CocoaLumberjack](https://github.com/CocoaLumberjack/CocoaLumberjack): [sentry-apple-cocoalumberjack](https://github.com/getsentry/sentry-apple-cocoalumberjack)
- - [Pulse](https://github.com/kean/Pulse): [sentry-apple-pulse](https://github.com/getsentry/sentry-apple-pulse)
- - [SwiftyBeaver](https://github.com/SwiftyBeaver/SwiftyBeaver): [sentry-apple-swiftybeaver](https://github.com/getsentry/sentry-apple-swiftybeaver)
- # Resources
- - [](https://docs.sentry.io/platforms/apple/)
- - [](https://github.com/getsentry/sentry-cocoa/discussions)
- - [](https://discord.com/invite/sentry)
- - [](https://github.com/getsentry/.github/blob/master/CODE_OF_CONDUCT.md)
- - [](https://twitter.com/intent/follow?screen_name=sentry)
- - Check out product updates, deep dives, and tips on [the Sentry blog](https://blog.sentry.io/) and [our changelog](https://sentry.io/changelog/)
Ratings and comments
Sign in to rate this skill.
Sign inFree to use. If it’s helped, pass it on.