2021 Developer Tools
WWDC21 · 15 min · Developer Tools
Triage TestFlight crashes in Xcode Organizer
Learn how Xcode Organizer makes it easier and faster to triage and fix crashes. We’ll explore how you can get access to crash information and feedback from your TestFlight testers just moments after they occur. And we’ll show you how to analyze crashes, view metrics, and even share crash information among your team. For a primer on crash logs, we recommend watching “Understanding Crashes and Crash Logs” from WWDC18.
Watch at developer.apple.com ↗Code shown on screen · 1 snippet
Using MetricKit
// Capture crash logs in your code
import MetricKit
class Subscriber: NSObject {
override init() {
super.init()
MXMetricManager.shared.add(self)
}
deinit {
MXMetricManager.shared.remove(self)
}
}
extension Subscriber: MXMetricManagerSubscriber {
func didReceive(_ payloads: [MXDiagnosticPayload]) {
payloads.forEach {
if let crashDiagnostics = $0.crashDiagnostics {
// Begin analyzing crash diagnostic payload.
}
}
}
} Resources
Related sessions
-
16 min -
24 min -
14 min -
57 min