iOS Crashes and Session Replay Are Not Captured

In most cases for iOS, the crashes and session replay are not captured because of the debugger attached to the build. In this case, the debugger hooks and catches the crashes causing all crash handlers to not work properly.

If you have the debug logging enabled for iOS you should be able to see a warning from the logs:


If you see this message then you need to detach the debugger. By following the steps below:

1. In Xcode, go to “Edit Scheme” under your project target.

2. Uncheck “Debug executable”

3. Clean and build the application before running in simulator/device.

You can also detach the debugger on a per-run basis. This way you do not need to remove it from the scheme and just detach it for the current run.


See also Session Replay on crashes for iOS: User sessions are not recorded and Session Replay on crashes for iOS: User sessions are recorded, but Session Replay is not available.

8 Likes

Thank you for Sharing this!