
Sentry Cocoa
Error monitoring SDK for Apple platforms
Replaces Bugsnag, Instabug, Embrace

Who it's for
Instrument a production iOS app to capture crashes and ANRs automatically, with stack traces symbolicated and grouped in Sentry's issue tracker for triage.
Add error and performance monitoring to a macOS app using the same SDK and DSN configuration used for the iOS counterpart, keeping all Apple platform issues in one Sentry project.
Team ships no macOS targets
Switch from a CocoaPods-based Sentry integration to SPM using the Sentry Wizard to automate project patching, then update to the current v9 release.
Already on SPM or XCFrameworks
Forward logs from swift-log, CocoaLumberjack, Pulse, or SwiftyBeaver to Sentry Logs by adding the matching bridge package, without replacing the existing logging setup.
Project has no existing structured logging
The problem
Apple platform developers lack a built-in way to capture crashes, errors, and performance regressions from production apps across iOS, macOS, tvOS, and other Apple targets. Without instrumentation, production bugs surface only through user reports rather than structured, actionable data.
How it works
A single SDK covers iOS, iPadOS, tvOS, macOS, visionOS, and watchOS. watchOS has limited symbolication support and no crash handling; all other platforms receive full error and performance instrumentation.
The SDK is distributed via SPM, installable directly from Xcode (File > Add Packages) or via `Package.swift`. Pre-built static XCFramework binaries are available through the sentry-apple-binaries repository for teams that prefer not to compile from source.
Running `brew install getsentry/tools/sentry-wizard && sentry-wizard -i ios` patches the Xcode project and configures the SDK automatically, reducing manual setup to a single terminal command.
Initialization and configuration APIs are available in both Swift (`SentrySDK.start`) and Objective-C (`[SentrySDK startWithConfigureOptions:]`), covering legacy codebases alongside modern Swift projects.
Optional separate Swift packages bridge swift-log, CocoaLumberjack, Pulse, and SwiftyBeaver into Sentry Logs. Each integration is an independent package so only the logging library you already use is pulled in.
Features
- Cross-platform Apple coverage
- Swift Package Manager first
- Automated project setup via Sentry Wizard
- Swift and Objective-C support
- Modular logging integrations
How to install
brew install getsentry/tools/sentry-wizard && sentry-wizard -i ios
Recommended for this setup
Strengths
- Official, actively maintained SDK: The repository is maintained by Sentry and tracks a versioned release cycle (currently v9, with v8.x still supported on a separate branch). CI status is publicly visible via GitHub Actions workflows.
- Minimal initialization overhead: A single `SentrySDK.start` call placed in `applicationDidFinishLaunching` is all that is needed to begin capturing errors and performance data, keeping integration surface small.
- No unnecessary dependencies: Logging integrations are split into separate packages (sentry-apple-swift-log, sentry-apple-cocoalumberjack, sentry-apple-pulse, sentry-apple-swiftybeaver), so projects only ship the logging bridge they need.
Trade-offs
- CocoaPods no longer supported: CocoaPods support was dropped after version 9.19.1. Projects still using CocoaPods must migrate to Swift Package Manager or XCFrameworks before upgrading to current releases.
- watchOS support is limited: watchOS receives limited symbolication support and no crash handling. Teams building primarily for watchOS will not get the same depth of observability available on iOS or macOS.
- Requires a Sentry backend: The SDK sends data to a Sentry DSN endpoint. Teams must operate either Sentry's cloud service or a self-hosted Sentry instance; the SDK itself provides no local storage or standalone dashboard.
Tech stack
FAQ
iOS, iPadOS, tvOS, macOS, visionOS, and watchOS. watchOS has limited symbolication support and no crash handling; full crash reporting is available on all other listed platforms.
CocoaPods support was dropped after version 9.19.1. The recommended installation methods are Swift Package Manager (via Xcode or Package.swift) and pre-built XCFrameworks from the sentry-apple-binaries repository.
Run `brew install getsentry/tools/sentry-wizard && sentry-wizard -i ios` in your terminal. The wizard patches the project and configures the SDK automatically.
Yes. Both Swift (`SentrySDK.start`) and Objective-C (`[SentrySDK startWithConfigureOptions:]`) initialization APIs are provided.
Add the matching optional bridge package: sentry-apple-swift-log for swift-log, sentry-apple-cocoalumberjack for CocoaLumberjack, sentry-apple-pulse for Pulse, or sentry-apple-swiftybeaver for SwiftyBeaver. Each is a separate Swift package so only the one you need is included.