From 280dc6c97bdcea82a8a662d52cd6420fa2447ea8 Mon Sep 17 00:00:00 2001 From: Jamil Date: Fri, 28 Feb 2025 07:41:56 +0000 Subject: [PATCH] ci: Don't specify Xcode version (#8293) A particular version of Xcode locks in particular versions of SDKs to build against. If we hardcode this, the benefit is that we have a predictable and repeatable build environment. The downside is whenever GitHub updates its macOS runner images, we could fail to build due to a version mismatch. In general, drift between Xcode versions isn't a problem, and tracking the latest will more closely track developer's machines. --- .github/workflows/_swift.yml | 2 -- scripts/build/lib.sh | 3 --- 2 files changed, 5 deletions(-) diff --git a/.github/workflows/_swift.yml b/.github/workflows/_swift.yml index c0cd6ba9a..8b0bade4b 100644 --- a/.github/workflows/_swift.yml +++ b/.github/workflows/_swift.yml @@ -30,8 +30,6 @@ jobs: permissions: contents: write # for attaching the build artifacts to the release id-token: write - env: - XCODE_VERSION: "16.2" strategy: fail-fast: false matrix: diff --git a/scripts/build/lib.sh b/scripts/build/lib.sh index 561540d01..1fd1f0378 100755 --- a/scripts/build/lib.sh +++ b/scripts/build/lib.sh @@ -12,9 +12,6 @@ function setup_runner() { keychain_pass=$(openssl rand -base64 32) keychain_path="$(mktemp -d)/app-signing.keychain-db" - # Select Xcode specified by the workflow - sudo xcode-select -s "/Applications/Xcode_$XCODE_VERSION.app" - # Install provisioning profiles mkdir -p "$profiles_path" base64_decode "$app_profile" "$profiles_path/$app_profile_file"