Skip to content

Commit 98888b5

Browse files
committed
Fix
1 parent da0d173 commit 98888b5

File tree

3 files changed

+26
-5
lines changed

3 files changed

+26
-5
lines changed

.github/workflows/e2e-v2.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,15 @@ jobs:
8686
with:
8787
ruby-version: '3.3.0'
8888

89+
- name: Install Xcode Components
90+
if: ${{ matrix.platform == 'ios' }}
91+
# Xcode 26 on CI runners may be missing some components (MetalToolchain, Swift compatibility libraries)
92+
# This fixes linker errors like "swiftCompatibility56 not found"
93+
# See: https://github.com/actions/runner-images/issues/13080
94+
run: |
95+
sudo xcodebuild -downloadComponent MetalToolchain || true
96+
sudo xcodebuild -runFirstLaunch || true
97+
8998
- name: Install Global Dependencies
9099
run: npm i -g react-native-cli @sentry/cli
91100

@@ -283,6 +292,15 @@ jobs:
283292
if: ${{ matrix.platform == 'ios' }}
284293
run: which xcbeautify || brew install xcbeautify
285294

295+
- name: Install Xcode Components
296+
if: ${{ matrix.platform == 'ios' }}
297+
# Xcode 26 on CI runners may be missing some components (MetalToolchain, Swift compatibility libraries)
298+
# This fixes linker errors like "swiftCompatibility56 not found"
299+
# See: https://github.com/actions/runner-images/issues/13080
300+
run: |
301+
sudo xcodebuild -downloadComponent MetalToolchain || true
302+
sudo xcodebuild -runFirstLaunch || true
303+
286304
- name: Install JS Dependencies
287305
run: yarn install
288306

.github/workflows/testflight.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,14 @@ jobs:
4545
working-directory: samples/react-native
4646
run: yarn set-build-number ${{ github.run_number }}
4747

48+
- name: Install Xcode Components
49+
# Xcode 26 on CI runners may be missing some components (MetalToolchain, Swift compatibility libraries)
50+
# This fixes linker errors like "swiftCompatibility56 not found"
51+
# See: https://github.com/actions/runner-images/issues/13080
52+
run: |
53+
sudo xcodebuild -downloadComponent MetalToolchain || true
54+
sudo xcodebuild -runFirstLaunch || true
55+
4856
- name: Pod Install
4957
working-directory: samples/react-native/ios
5058
run: PRODUCTION=1 bundle exec pod install

samples/react-native/ios/Podfile

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,6 @@ target 'sentryreactnativesample' do
3636
:app_path => "#{Pod::Config.instance.installation_root}/.."
3737
)
3838

39-
# Build Sentry from source to support Xcode 26+
40-
# The prebuilt XCFramework from CocoaPods was built with Xcode 16 and contains
41-
# Swift compatibility libraries that don't exist in Xcode 26
42-
pod 'Sentry', :git => 'https://github.com/getsentry/sentry-cocoa.git', :tag => '9.4.1'
43-
4439
if ENV['RCT_NEW_ARCH_ENABLED'] == '1'
4540
pod 'AppTurboModules', :path => "./../tm"
4641
end

0 commit comments

Comments
 (0)