> ## Documentation Index
> Fetch the complete documentation index at: https://docs.traceback.cc/llms.txt
> Use this file to discover all available pages before exploring further.

# iOS / Swift SDK

> Native Swift and Objective-C crash reporting, Mach exception handling, and SwiftUI breadcrumbs.

## Swift Package Manager

Add `https://github.com/traceback-dev/traceback-cocoa` to your Swift Package dependencies.

***

## Initialization

In your `AppDelegate.swift` or SwiftUI `@main` struct:

```swift theme={null}
import SwiftUI
import Traceback

@main
struct MyApp: App {
    init() {
        TracebackSDK.start(options: [
            .dsn: "https://tb_live_key@ingest.traceback.dev/1",
            .environment: "production",
            .enableAutoBreadcrumbTracking: true
        ])
    }

    var body: some Scene {
        WindowGroup {
            ContentView()
        }
    }
}
```
