Skip to content

Commit 4ce1f1c

Browse files
committed
Require that SELECT_XCODE is set.
Allowing the Xcode version to "float" based on whatever default GitHub selects creates an unreliable environment. When GitHub changes the default, we can have multiple jobs in the same run using different versions as it rolls out across machines. It can also cause oscillation between runs as different machines are used. It also causes unpredictable timing when the updates happen. This change helps ensure that the version that is used is pinned. The downside is that it requires manually bumping the version, and the risk that if we take too long, older Xcodes will be removed and that will break the build.
1 parent 4fd3cf9 commit 4ce1f1c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/ci/scripts/select-xcode.sh

+1-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,5 @@ IFS=$'\n\t'
77
source "$(cd "$(dirname "$0")" && pwd)/../shared.sh"
88

99
if isMacOS; then
10-
if [[ -s "${SELECT_XCODE-}" ]]; then
11-
sudo xcode-select -s "${SELECT_XCODE}"
12-
fi
10+
sudo xcode-select -s "${SELECT_XCODE}"
1311
fi

0 commit comments

Comments
 (0)