Commit 27a1696
fix(ios): Guard replay postInit behind runtime session replay check
When iOS deployment target >= 16.0, SENTRY_TARGET_REPLAY_SUPPORTED is
true at compile time, but postInit was called unconditionally even when
session replay was not configured. This caused a SIGABRT crash on launch
in release builds with New Architecture (TurboModules) because the
breadcrumb converter installed by postInit referenced a nil replay
instance.
Fixes #5679
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent e119987 commit 27a1696
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
| |||
0 commit comments