A full-featured system emulator and virtual machine host for iOS, macOS and visionOS, built on QEMU to run Windows, Linux and other systems.
getsentry/sentry-cocoa
Official Sentry SDK for Apple platforms that reports crashes and errors from iOS, macOS, tvOS, watchOS and visionOS apps to Sentry.
Open-source alternative to:Firebase Crashlytics
- Stars
- 1,129
- Forks
- 427
- Open issues
- 369
- Last commit
- 8 hours ago
What is it?
sentry-cocoa is the official Sentry SDK for Apple platforms, covering iOS, iPadOS, tvOS, macOS, watchOS and visionOS. It captures crashes and errors in an app and sends them to Sentry, where developers can inspect stack traces and diagnose production issues.
The SDK is installed with Swift Package Manager, either from source or through pre-built XCFrameworks. Initialization happens once at app launch via SentrySDK.start, and both Swift and Objective-C APIs are supported. A Sentry wizard command can patch an Xcode project and configure the SDK automatically. CocoaPods support has been dropped, with 9.19.1 as the last version published there.
Logging integrations for swift-log, CocoaLumberjack, Pulse and SwiftyBeaver are maintained as separate packages, so apps only pull in the logging libraries they use. Note that watchOS has limited symbolication support and no crash handling.
Key features
- 01Captures crashes and errors from iOS, macOS, tvOS, watchOS and visionOS apps.
- 02Installs via Swift Package Manager or pre-built XCFrameworks.
- 03Provides both Swift and Objective-C initialization APIs.
- 04Forwards logs from swift-log, CocoaLumberjack, Pulse and SwiftyBeaver to Sentry Logs.
- 05Includes a Sentry Wizard command that configures the project automatically.
Use cases
- Monitoring crashes and errors in a production iOS or macOS app.
- Tracking runtime errors across Apple devices such as Apple Watch or Apple Vision Pro apps.
- Sending existing swift-log or CocoaLumberjack logs to Sentry for centralized debugging.
Quick start
- 1
Run the Sentry Wizard to patch your project and configure the SDK automatically
brew install getsentry/tools/sentry-wizard && sentry-wizard -i ios - 2
Or add the SDK in Xcode via File > Add Packages using the repository URL
- 3
Call SentrySDK.start with your DSN as early as possible, such as in applicationDidFinishLaunching
Things to know
- CocoaPods support has been dropped; migrate to Swift Package Manager or XCFrameworks.
- watchOS has limited symbolication support and no crash handling.
Topics
FAQ
- What is sentry-cocoa?
- Official Sentry SDK for Apple platforms that reports crashes and errors from iOS, macOS, tvOS, watchOS and visionOS apps to Sentry. sentry-cocoa is the official Sentry SDK for Apple platforms, covering iOS, iPadOS, tvOS, macOS, watchOS and visionOS. It captures crashes and errors in an app and sends them to Sentry, where developers can inspect stack traces and diagnose production issues.
- Is sentry-cocoa free to use? What license does it have?
- sentry-cocoa is open source under the MIT license. Check the license terms before using it in commercial products.
- Is sentry-cocoa still maintained?
- Actively maintained. The last commit to sentry-cocoa was on Oct 21, 2026.
- What can I use sentry-cocoa for?
- Monitoring crashes and errors in a production iOS or macOS app. Tracking runtime errors across Apple devices such as Apple Watch or Apple Vision Pro apps. Sending existing swift-log or CocoaLumberjack logs to Sentry for centralized debugging.
- How do I install sentry-cocoa?
- Run the Sentry Wizard to patch your project and configure the SDK automatically: brew install getsentry/tools/sentry-wizard && sentry-wizard -i ios Or add the SDK in Xcode via File > Add Packages using the repository URL Call SentrySDK.start with your DSN as early as possible, such as in applicationDidFinishLaunching
- Where can I get sentry-cocoa?
- The source code and installation instructions are on GitHub: https://github.com/getsentry/sentry-cocoa
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
Elegant HTTP networking library for Swift, built on URLSession, with chainable requests, encoding, uploads, downloads and response validation.
A decentralized chat app that works over Bluetooth mesh offline and over Nostr relays online, with no accounts or phone numbers.
Open source macOS dictation app that turns speech into text with on-device models and optional AI cleanup, a local alternative to Wispr Flow.
A free, open-source RSS reader for macOS and iOS that supports RSS, Atom, JSON Feed and RSS-in-JSON.
An MCP server and CLI that gives AI coding agents tools to build, test and run iOS and macOS Xcode projects.