# iOS Error and tvOS Performance Monitoring

> Improve your current monitoring setup & resolve bottlenecks with Sentry's tvOS error tracking & performance monitoring. Get started or request a demo.

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

---

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

## Install

### Swift

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

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

Or add it to the dependencies in your `Package.swift`:

```swift
.package(url: "https://github.com/getsentry/sentry-cocoa", from: "9.34.0"),
```

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 [Swift docs](https://docs.sentry.io/platforms/apple/guides/tvos/) for full setup options.

### Objective-C

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

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

Or add it to the dependencies in your `Package.swift`:

```swift
.package(url: "https://github.com/getsentry/sentry-cocoa", from: "9.34.0"),
```

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

```objectivec
@import Sentry;

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {

    [SentrySDK startWithConfigureOptions:^(SentryOptions *options) {
        options.dsn = @"https://<key>@sentry.io/<project>";
        options.debug = YES;
        options.tracesSampleRate = @1.0;
    }];

    return YES;
}
```

See the [Objective-C docs](https://docs.sentry.io/platforms/apple/guides/tvos/) for full setup options.

## Features

### tvOS 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 tvOS performance with max efficiency, not max effort.

### Get tvOS Crash Reporting With Complete Stack Traces

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

### Fill In The Blanks About tvOS Crashes

See what the app was doing when the tvOS 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 tvOS 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 tvOS crash and instantly send deploy emails.

---

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