# visionOS | Sentry

> Automatically capture errors, crashes, and performance issues in your visionOS apps with Sentry's Apple SDK.

**URL:** https://sentry.io/for/visionos/

---

**Documentation:** [https://docs.sentry.io/platforms/apple/guides/visionos/](https://docs.sentry.io/platforms/apple/guides/visionos/)

## Install

Add the Sentry SDK via Swift Package Manager. In Xcode, go to **File > Add Packages** and enter:

```
https://github.com/getsentry/sentry-cocoa.git
```

Initialize the SDK as soon as possible in your application lifecycle:

```swift
import Sentry

SentrySDK.start { options in
    options.dsn = "https://<key>@sentry.io/<project>"
    options.debug = true
    options.tracesSampleRate = 1.0
}
```

See the [visionOS docs](https://docs.sentry.io/platforms/apple/guides/visionos/) for full setup options.

## Features

### visionOS Performance Monitoring

Quickly identify performance issues and view the full end-to-end distributed trace to see the exact poor-performing API call and what caused it. Measure everything from warm starts to frozen frames so you can improve visionOS performance with max efficiency, not max effort.

### Get visionOS Crash Reporting With Complete Stack Traces

Reveal hidden context in Apple's incomplete crash data by automatically symbolicating unreadable symbols. Handle Cocoa visionOS crashes with complete context using the Swift/Objective-C SDK.

### Fill In The Blanks About visionOS Crashes

See what the app was doing when the visionOS crash occurred: every user action, controller changes, and custom breadcrumbs. Record events when devices are offline or in airplane mode, then send crash reports as soon as connection is regained.

### Resolve visionOS Crashes With Better Data

Improve Cocoa error monitoring workflow with a full view of releases so you can mark errors as resolved and prioritize live issues. Learn in which version a bug first appeared, merge duplicates, and know if things regress in a future release. Add commit data to automatically suggest an owner of each visionOS crash and instantly send deploy emails.

---

*Source: [sentry.io/for/visionos/](https://sentry.io/for/visionos/)*
