Skip to content

Commit f39767f

Browse files
committed
ci: iOS Device Tests download Xcode platform tools
1 parent 3caf453 commit f39767f

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/device-tests-ios.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ jobs:
3030
- name: Setup Environment
3131
uses: ./.github/actions/environment
3232

33+
# macOS 15 (Arm64) runners (and later) only include three most recent platform tools of installed Xcode versions
34+
# see https://github.com/actions/runner-images/issues/12541
35+
- name: Download Xcode components
36+
run: xcodebuild -downloadPlatform iOS -exportPath ~/Downloads -buildVersion 18.0 -architectureVariant arm64
37+
3338
- name: Build iOS Test App
3439
run: pwsh ./scripts/device-test.ps1 ios -Build
3540

test/Sentry.Maui.Device.TestApp/Sentry.Maui.Device.TestApp.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">21.0</SupportedOSPlatformVersion>
3535
<!-- Pin target iOS version so that our tests don't break when new versions of Xcode are released.
3636
'net8.0-ios' resolves the latest version of the iOS SDK otherwise. -->
37-
<TargetPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">18</TargetPlatformVersion>
37+
<TargetPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">18.0</TargetPlatformVersion>
3838

3939
<EmbedAssembliesIntoApk>true</EmbedAssembliesIntoApk>
4040

0 commit comments

Comments
 (0)