From f50fa95778a458201368e594e4ed62390938c180 Mon Sep 17 00:00:00 2001 From: Jamil Date: Thu, 19 Jun 2025 09:21:58 -0700 Subject: [PATCH] fix(ci): lock xcode major (#9585) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Apple won't allow apps built with Xcode betas to be reviewed. Screenshot 2025-06-19 at 9 04 17 AM --- .github/workflows/_swift.yml | 2 ++ scripts/build/lib.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/_swift.yml b/.github/workflows/_swift.yml index a63e2bb75..cade19091 100644 --- a/.github/workflows/_swift.yml +++ b/.github/workflows/_swift.yml @@ -27,6 +27,8 @@ jobs: name: ${{ matrix.job_name }} needs: update-release-draft runs-on: macos-15 + env: + XCODE_MAJOR: 16 permissions: contents: write # for attaching the build artifacts to the release id-token: write diff --git a/scripts/build/lib.sh b/scripts/build/lib.sh index 086a4bb29..b0eddbd18 100755 --- a/scripts/build/lib.sh +++ b/scripts/build/lib.sh @@ -10,7 +10,7 @@ function setup_runner() { local ne_profile_file="$4" # Use the latest version of Xcode - matches what we typically use for development - sudo xcode-select --switch "$(ls -d /Applications/Xcode*.app | sort -V | tail -n 1)" + sudo xcode-select --switch "$(ls -d /Applications/Xcode*${XCODE_MAJOR}*.app | sort -V | tail -n 1)" # The GitHub runners stopped including the iOS SDK xcodebuild -downloadPlatform iOS