Crash reporting for iOS, macOS, and visionOS
Your app and your API are one product, so their errors belong in one place. Add Honeybadger to your iOS, macOS, or visionOS app, and crashes show up next to the errors from your backend, with the same alerts and workflow. Upload your dSYMs, and each backtrace shows file names, functions, and line numbers.
What gets reported
- Uncaught exceptions from Objective-C, including
NSException - Signal crashes like
SIGSEGVandSIGABRT, plus Swift runtime errors such asfatalErrorand force-unwrapping nil - Exceptions in AppKit event handlers on macOS, such as button actions
- Errors you report yourself with
Honeybadger.notify
Crashes include any context you set with setContext, like a user or session ID. Each report is saved to disk before it's sent, so it survives the crash and a dropped connection. Honeybadger works alongside Crashlytics or Sentry, so you can run them side by side.
Get started
Add pod 'Honeybadger' to your Podfile, or add https://github.com/honeybadger-io/honeybadger-cocoa with Swift Package Manager. Then configure Honeybadger when your app launches:
import Honeybadger
Honeybadger.configure(apiKey: "PROJECT_API_KEY")
That's all you need to start capturing crashes. The SDK supports iOS 16, macOS 13, and visionOS 1, and later versions of each.
Readable backtraces with dSYMs
Add the SDK's upload-dsyms.sh script as the last Run Script phase in your app target, and it uploads your dSYMs automatically. With CocoaPods:
bash "${PODS_ROOT}/Honeybadger/bin/upload-dsyms.sh" --api-key "${HB_API_KEY}" --warn-only
--warn-only keeps a failed upload from failing your build.
For Swift Package Manager and CI setups, see the dSYM guide.
If a crash comes in before its dSYM, the fault page shows a Missing dSYMs banner listing the build UUIDs Honeybadger needs. Upload those dSYMs, and Honeybadger re-symbolicates the existing crashes automatically.
Already using the Cocoa SDK?
Upgrade to version 2.0 to use dSYM uploads. It raises the minimum OS versions and changes resetContext, so read the release notes first.
See the Cocoa SDK docs for all configuration options.
Try Honeybadger for FREE
Honeybadger is full-stack application monitoring that helps developers move fast and fix things. Get set up in minutes and check monitoring off your to-do list.
Easy 5-minute setup — No credit card required