From bb2eac415c8114323611c588931fd880dc20863a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Duquette?= Date: Fri, 20 Nov 2026 11:04:18 -0500 Subject: [PATCH] ci(csharp): move iOS nuget tests to net10.0-ios The net9.0-ios workload is out of support on the runner's .NET 11 SDK (NETSDK1202), so the iOS test project now targets net10.0-ios. The net10 iOS workload requires Xcode 26.0 exactly, which cannot build storyboards on the macos-26 runner. Keep Xcode 26.5 and disable the workload's Xcode version check instead. Build the test app before running it, since the Run target no longer builds it implicitly. --- .github/workflows/tests/csharp/ios/action.yml | 4 +++- wrappers/csharp/tests/unit-tests/nugets/iOS/iOS.csproj | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests/csharp/ios/action.yml b/.github/workflows/tests/csharp/ios/action.yml index 50c6a2d0..44180f80 100644 --- a/.github/workflows/tests/csharp/ios/action.yml +++ b/.github/workflows/tests/csharp/ios/action.yml @@ -44,7 +44,9 @@ runs: - name: Unit tests working-directory: ./wrappers/csharp/tests/unit-tests/nugets/iOS shell: bash - run: dotnet build -t:run -p:_DeviceName=:v2:udid="$IPHONE_16_SIM_UDID" 2>&1 | tee build.log + run: | + dotnet build 2>&1 | tee build.log + dotnet build -t:Run -p:_DeviceName=:v2:udid="$IPHONE_16_SIM_UDID" 2>&1 | tee -a build.log - name: Check fail working-directory: ./wrappers/csharp/tests/unit-tests/nugets/iOS diff --git a/wrappers/csharp/tests/unit-tests/nugets/iOS/iOS.csproj b/wrappers/csharp/tests/unit-tests/nugets/iOS/iOS.csproj index 8bb3b393..f06773ba 100644 --- a/wrappers/csharp/tests/unit-tests/nugets/iOS/iOS.csproj +++ b/wrappers/csharp/tests/unit-tests/nugets/iOS/iOS.csproj @@ -1,6 +1,6 @@ - net9.0-ios + net10.0-ios Exe enable true @@ -10,6 +10,7 @@ true false True + false