Capture Crashes (iOS)

LogRocket automatically detects Crashes in your iOS application. After a crash occurs, LogRocket will upload the crash report the next time the app is reopened and LogRocket is initialized.

🚧

Crash reports are not captured when the Xcode debugger is attached to the application. The Xcode debugger "traps" crashes and prevents them from fully occurring, stopping execution on a breakpoint. This prevents the LogRocket SDK from seeing that crash occurred.

Crash reporting can be disabled by setting Configuration option:

SDK.initialize(configuration: Configuration(
  ...
  unexpectedExceptionCaptureEnabled: false,
  ...
))