Skip to content

Commit 2723274

Browse files
committed
ci: xcode-select the chosen Xcode, not just DEVELOPER_DIR
The runner's xcode-select default (Xcode 26.5) disagreed with the workflow's DEVELOPER_DIR (26.6). Inside xcodebuild-spawned test processes, the /usr/bin/git shim then loaded Xcode3Core from both installs and exited 72 — captured verbatim by the probe diagnostic. Every subprocess-spawning test failure on the macos-26 runners traces here. Select the same Xcode globally so the shims resolve one install.
1 parent 619544b commit 2723274

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ jobs:
198198
XCODE_DIR="$XCODE_APP/Contents/Developer"
199199
echo "DEVELOPER_DIR=$XCODE_DIR" >> "$GITHUB_ENV"
200200
export DEVELOPER_DIR="$XCODE_DIR"
201+
sudo xcode-select -s "$XCODE_DIR" || true
201202
xcodebuild -version
202203
203204
- name: Validate Release reload artifact discovery
@@ -370,6 +371,7 @@ jobs:
370371
XCODE_DIR="$XCODE_APP/Contents/Developer"
371372
echo "DEVELOPER_DIR=$XCODE_DIR" >> "$GITHUB_ENV"
372373
export DEVELOPER_DIR="$XCODE_DIR"
374+
sudo xcode-select -s "$XCODE_DIR" || true
373375
xcodebuild -version
374376
375377
- name: Cache GhosttyKit.xcframework
@@ -548,6 +550,7 @@ jobs:
548550
XCODE_DIR="$XCODE_APP/Contents/Developer"
549551
echo "DEVELOPER_DIR=$XCODE_DIR" >> "$GITHUB_ENV"
550552
export DEVELOPER_DIR="$XCODE_DIR"
553+
sudo xcode-select -s "$XCODE_DIR" || true
551554
xcodebuild -version
552555
xcrun --sdk macosx --show-sdk-path
553556

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ jobs:
184184
XCODE_DIR="$XCODE_APP/Contents/Developer"
185185
echo "DEVELOPER_DIR=$XCODE_DIR" >> "$GITHUB_ENV"
186186
export DEVELOPER_DIR="$XCODE_DIR"
187+
sudo xcode-select -s "$XCODE_DIR" || true
187188
xcodebuild -version
188189
xcrun --sdk macosx --show-sdk-path
189190

0 commit comments

Comments
 (0)