Skip to content

Commit d5e88ba

Browse files
committed
Xcode 26.2 compatibility fix
1 parent 15de79e commit d5e88ba

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

samples/react-native/ios/Podfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,15 @@ target 'sentryreactnativesample' do
6161
:mac_catalyst_enabled => false,
6262
# :ccache_enabled => true
6363
)
64+
65+
# Fix for Xcode 26+ which removed swiftCompatibility56 libraries.
66+
# Override Swift version for Sentry to avoid compatibility shim references.
67+
installer.pods_project.targets.each do |target|
68+
if target.name == 'Sentry'
69+
target.build_configurations.each do |config|
70+
config.build_settings['SWIFT_VERSION'] = '6.0'
71+
end
72+
end
73+
end
6474
end
6575
end

0 commit comments

Comments
 (0)