PLCrashReporter captures crashes on iOS, macOS, and tvOS in-process, producing detailed reports with stacks, threads, and register state.
Overview
PLCrashReporter is an open-source in-process crash reporting framework for Apple operating systems. When an application crashes, it records diagnostic information such as application and system context, process and thread details, stack traces for active threads, and register state for the faulting thread.
The implementation relies on supported public APIs and unwind information from DWARF and Apple Compact Unwind data. It is designed not to interfere with lldb or gdb debugging sessions when those are attached. Reports are encoded as protobuf messages decodable with the library or any Protocol Buffers tool.
Integrators can add the library through CocoaPods, Carthage, Swift Package Manager, or by linking prebuilt binaries or xcframeworks. A companion command-line utility can convert reports to Apple’s text crash format for symbolicating with atos. Microsoft notes App Center as a common higher-level integration path, but the library itself can be embedded directly.
Minimum platform versions documented for recent releases include iOS 12, macOS 11.5, tvOS 12, and Mac Catalyst 13.0, with Xcode 11 or newer for development.
Key features
- In-process live crash capture
- DWARF and compact unwind stacks
- All-thread backtraces
- Crashed-thread register dump
- Protobuf-encoded reports
- plcrashutil text conversion
- Public API only
- Swift Package Manager, CocoaPods, and Carthage
Use cases
- Native iOS crash diagnostics
- macOS app stability monitoring
- tvOS crash log collection
- Custom crash pipeline before upload
- Field debugging without attached debuggers