File tree Expand file tree Collapse file tree 3 files changed +26
-5
lines changed
Expand file tree Collapse file tree 3 files changed +26
-5
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments