Offical client for Sentry.
This client was writen in Swift but works with both Swift >= 2.3 and Objective-C projects.
import Sentry
// Create client and start crash handler
SentryClient.shared = SentryClient(dsnString: "your-dsn")
SentryClient.shared?.startCrashHandler()
// Set
SentryClient.shared?.user = User(id: "3",
email: "[email protected]",
username: "some_user",
extra: ["is_admin": false]
)
Example Projects
- iOS Swift 2.3 Project - Full project
- ViewController.swift - Implementation
- Objective-C Project - Full project
- ViewController.m - Implementation
- tvOS Swift 3 Project - Full project
- ViewController.swift - Implementation
- macOS Swift 3 Project - Full project
- ViewController.swift - Implementation
- watchOS Swift 3 Project - Full project
- ViewController.swift - Implementation
(1)limited symbolication support