Skip to content
Back to search

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.

Checked today

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
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/getsentry--sentry-cocoa/badge.svg)](/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

i

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.

  1. <div align="center">
  2. <a href="https://sentry.io/?utm_source=github&utm_medium=logo" target="_blank">
  3. <img src="https://sentry-brand.storage.googleapis.com/github-banners/github-sdk-cocoa.jpg" alt="Sentry for Apple">
  4. </a>
  5. </div>
  6. _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/)_
  7. > [!NOTE]
  8. > You are currently viewing the **`main`** branch which latest development version of **v9** release.
  9. >
  10. > 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).
  11. # Official Sentry SDK for iOS / iPadOS / tvOS / macOS / watchOS <sup>(1)</sup> / visionOS
  12. [![Build](https://img.shields.io/github/actions/workflow/status/getsentry/sentry-cocoa/build.yml?branch=main)](https://github.com/getsentry/sentry-cocoa/actions/workflows/build.yml?query=branch%3Amain)
  13. [![SwiftPM compatible](https://img.shields.io/badge/spm-compatible-brightgreen.svg?style=flat)](https://swift.org/package-manager)
  14. [![Swift Package Index](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fgetsentry%2Fsentry-cocoa%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/getsentry/sentry-cocoa)
  15. [![X Follow](https://img.shields.io/twitter/follow/sentry?label=sentry&style=social)](https://x.com/intent/follow?screen_name=sentry)
  16. [![Discord Chat](https://img.shields.io/discord/621778831602221064?logo=discord&logoColor=ffffff&color=7389D8)](https://discord.com/invite/sentry)
  17. # Installation
  18. ### Sentry Wizard (Recommended)
  19. The quickest way to get started:
  20. ```bash
  21. brew install getsentry/tools/sentry-wizard && sentry-wizard -i ios
  22. ```
  23. This patches your project and configures the SDK automatically.
  24. ### Swift Package Manager (Compile from Source)
  25. Use this repository to build the SDK from source:
  26. **In Xcode:** File > Add Packages, then paste:
  27. ```
  28. https://github.com/getsentry/sentry-cocoa.git
  29. ```
  30. **In `Package.swift`:**
  31. ```swift
  32. dependencies: [
  33. .package(url: "https://github.com/getsentry/sentry-cocoa", from: "9.24.0"),
  34. ],
  35. targets: [
  36. .target(name: "YourApp", dependencies: [
  37. .product(name: "SentrySPM", package: "sentry-cocoa"),
  38. ]),
  39. ]
  40. ```
  41. ### Pre-built XCFrameworks
  42. For pre-built static binaries via SPM, use the [sentry-apple-binaries](https://github.com/getsentry/sentry-apple-binaries) repository.
  43. You can also download XCFrameworks directly from [GitHub Releases](https://github.com/getsentry/sentry-cocoa/releases).
  44. For all installation options (Objective-C, dynamic linking, manual install), see the [full installation docs](https://docs.sentry.io/platforms/apple/install/).
  45. > [!NOTE]
  46. > 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.
  47. # Initialization
  48. _Remember to call this as early in your application life cycle as possible_
  49. Ideally in `applicationDidFinishLaunching` in `AppDelegate`
  50. ```swift
  51. import SentrySwift // The SentrySPM product. Use `import Sentry` with the pre-built XCFrameworks.
  52. // ....
  53. SentrySDK.start { options in
  54. options.dsn = "___PUBLIC_DSN___"
  55. options.debug = true // Helpful to see what's going on
  56. }
  57. ```
  58. For Objective-C, depend on the `SentryObjC` product instead of `SentrySPM` (or `SentryObjC-Static` / `SentryObjC-Dynamic` for the pre-built frameworks):
  59. ```objc
  60. #import <SentryObjC/SentryObjC.h>
  61. // ....
  62. [SentryObjCSDK startWithConfigureOptions:^(SentryObjCOptions *options) {
  63. options.dsn = @"___PUBLIC_DSN___";
  64. options.debug = YES; // Helpful to see what's going on
  65. }];
  66. ```
  67. For more information checkout the [docs](https://docs.sentry.io/platforms/apple).
  68. <sup>(1)</sup>limited symbolication support and no crash handling.
  69. # Logging Integrations
  70. 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:
  71. - [swift-log](https://github.com/apple/swift-log): [sentry-apple-swift-log](https://github.com/getsentry/sentry-apple-swift-log)
  72. - [CocoaLumberjack](https://github.com/CocoaLumberjack/CocoaLumberjack): [sentry-apple-cocoalumberjack](https://github.com/getsentry/sentry-apple-cocoalumberjack)
  73. - [Pulse](https://github.com/kean/Pulse): [sentry-apple-pulse](https://github.com/getsentry/sentry-apple-pulse)
  74. - [SwiftyBeaver](https://github.com/SwiftyBeaver/SwiftyBeaver): [sentry-apple-swiftybeaver](https://github.com/getsentry/sentry-apple-swiftybeaver)
  75. # Resources
  76. - [![Documentation](https://img.shields.io/badge/documentation-sentry.io-green.svg)](https://docs.sentry.io/platforms/apple/)
  77. - [![Discussions](https://img.shields.io/github/discussions/getsentry/sentry-cocoa.svg)](https://github.com/getsentry/sentry-cocoa/discussions)
  78. - [![Discord Chat](https://img.shields.io/discord/621778831602221064?logo=discord&logoColor=ffffff&color=7389D8)](https://discord.com/invite/sentry)
  79. - [![Code of Conduct](https://img.shields.io/badge/code%20of%20conduct-sentry-green.svg)](https://github.com/getsentry/.github/blob/master/CODE_OF_CONDUCT.md)
  80. - [![Twitter Follow](https://img.shields.io/twitter/follow/sentry?label=sentry&style=social)](https://twitter.com/intent/follow?screen_name=sentry)
  81. - 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 in

Free to use. If it’s helped, pass it on.