Commit 2566c11
fix(ios): Guard replay postInit behind runtime session replay check (#5858)
* 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>
* fix(ios): Add changelog entry for replay postInit guard
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Fixes lint issue
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 9d49612 commit 2566c11
2 files changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
33 | 36 | | |
34 | 37 | | |
35 | 38 | | |
| |||
0 commit comments