From ddb424146a336501e59387b51db201ea31c7ad5b Mon Sep 17 00:00:00 2001 From: Antonis Lilis Date: Thu, 27 Aug 2026 13:05:18 +0200 Subject: [PATCH] fix(ios): Stay on Cocoa SDK 9.24.0 (revert 9.26.0 bump) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Revert the sentry-cocoa bump from #6409. sentry-cocoa 9.25/9.26 moved the replay network-detail capture methods into a Swift `@objc extension`, which compiles to an ObjC category that the prebuilt static `Sentry.xcframework` dead-strips under the default static link, crashing at runtime with "unrecognized selector" (#6609). 9.24.0 predates that change, so the crashing category does not exist and no consumer-side linker workaround is needed. Roll back to it for this release; the 9.26 upgrade plus the `-force_load` link fix can land together as a proper follow-up (#6615). 9.26.0 was never released (Unreleased section only) and 8.23.0 already ships 9.24.0, so no user-facing changelog entry is needed — the Unreleased "Bump Cocoa SDK" line is dropped rather than replaced with a downgrade note. Co-Authored-By: Claude Opus 4.8 --- CHANGELOG.md | 3 --- packages/core/RNSentry.podspec | 2 +- packages/core/scripts/sentry_utils.rb | 4 ++-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 73afb632a1..e11cbebc16 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,9 +25,6 @@ - Bump Android SDK from v8.52.0 to v8.53.0 ([#6586](https://github.com/getsentry/sentry-react-native/pull/6586)) - [changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md#8530) - [diff](https://github.com/getsentry/sentry-java/compare/8.52.0...8.53.0) -- Bump Cocoa SDK from v9.24.0 to v9.26.0 ([#6409](https://github.com/getsentry/sentry-react-native/pull/6409)) - - [changelog](https://github.com/getsentry/sentry-cocoa/blob/main/CHANGELOG.md#9260) - - [diff](https://github.com/getsentry/sentry-cocoa/compare/9.24.0...9.26.0) - Bump JavaScript SDK from v10.69.0 to v10.71.0 ([#6580](https://github.com/getsentry/sentry-react-native/pull/6580), [#6610](https://github.com/getsentry/sentry-react-native/pull/6610)) - [changelog](https://github.com/getsentry/sentry-javascript/blob/develop/CHANGELOG.md#10710) - [diff](https://github.com/getsentry/sentry-javascript/compare/10.69.0...10.71.0) diff --git a/packages/core/RNSentry.podspec b/packages/core/RNSentry.podspec index bc48e15f9c..5151c6f00c 100644 --- a/packages/core/RNSentry.podspec +++ b/packages/core/RNSentry.podspec @@ -63,7 +63,7 @@ Pod::Spec.new do |s| 'DEFINES_MODULE' => 'YES' } - sentry_cocoa_version = '9.26.0' + sentry_cocoa_version = '9.24.0' # Consume sentry-cocoa as a prebuilt `Sentry.xcframework` by default. # diff --git a/packages/core/scripts/sentry_utils.rb b/packages/core/scripts/sentry_utils.rb index 32c430acdc..fb1b688854 100644 --- a/packages/core/scripts/sentry_utils.rb +++ b/packages/core/scripts/sentry_utils.rb @@ -60,8 +60,8 @@ def is_new_hermes_runtime(rn_version) # `Sentry` module. `Sentry-Dynamic.xcframework` would ship the same # `Sentry.framework` inside but under a mismatched enclosing name, so # CocoaPods generates `-framework Sentry-Dynamic` and fails at link. - '9.26.0' => { - 'Sentry' => 'e1b80746e632d1127975b9ecca2d42398a74e4adac94882a71192eee41b1dc29', + '9.24.0' => { + 'Sentry' => 'c530edd27b20f7c151e73d84a34ee03474e3d5ddab65ffe9d30366f80149668a', }, }.freeze