One Logo Pool Ball
MetricKit · IOS API REFERENCE

CrashDiagnostic

struct · iOS 27.0+ · SDK 27.1

struct CrashDiagnostic

A diagnostic that encapsulates crash reports.

Members (8)

get · iOS 27.0+

callStackTree

TypeScript
get callStackTree(): CallStackTree
Swift declaration
let callStackTree: CallStackTree

The application call stack tree associated with this crash.

get · iOS 27.0+

exceptionCode

TypeScript
get exceptionCode(): (number) | null
Swift declaration
let exceptionCode: UInt64?

Processor specific information about the exception. Encoded into one or more 64-bit hexadecimal numbers.

get · iOS 27.0+

exceptionType

TypeScript
get exceptionType(): (number) | null
Swift declaration
let exceptionType: Int?

The name of the Mach exception that terminated the app.

get · iOS 27.0+

exceptionReason

TypeScript
get exceptionReason(): (CrashDiagnostic_ObjectiveCExceptionReason) | null
Swift declaration
let exceptionReason: CrashDiagnostic.ObjectiveCExceptionReason?

The exception reason for an uncaught ObjC exception.

get · iOS 27.0+

terminationReason

TypeScript
get terminationReason(): (CrashDiagnostic_TerminationReason) | null
Swift declaration
let terminationReason: CrashDiagnostic.TerminationReason?

The reason the app was terminated as a human-readable string.

get · iOS 27.0+

terminationCategory

TypeScript
get terminationCategory(): (CrashDiagnostic_TerminationCategory) | null
Swift declaration
let terminationCategory: CrashDiagnostic.TerminationCategory?

The category of termination that caused this crash. This value corresponds to the termination categories reported by ``ForegroundTerminationMetric`` and ``BackgroundTerminationMetric``, enabling correlation between individual crash diagnostics and aggregate termination counts. This property is `nil` when the termination category cannot be determined from the available crash metadata.

get · iOS 27.0+

virtualMemoryRegionInfo

TypeScript
get virtualMemoryRegionInfo(): (string) | null
Swift declaration
let virtualMemoryRegionInfo: String?

Details about memory that the app incorrectly accessed. This property is set when a bad memory access crash occurs.

get · iOS 27.0+

signal

TypeScript
get signal(): (number) | null
Swift declaration
let signal: Int?

The signal associated with this crash.

Skipped declarations

No declarations were skipped in this snapshot.

All MetricKit types →