From 25c48234f5356d823464f00ca23cbf121cf77dff Mon Sep 17 00:00:00 2001 From: spacedandy-agents-simplex <342056592+spacedandy-agents-simplex@users.noreply.github.com> Date: Thu, 15 Oct 2026 09:34:13 +0000 Subject: [PATCH] ci: build with the default Xcode's toolchain, not the newer Command Line Tools The macos-26-arm64 image 20261013 adds Command Line Tools 27, and links resolved system libraries in its macOS 27 SDK, which the linker rejects (tapi error: unknown architecture arm64e.x1-macos; run 38702428043). DEVELOPER_DIR points the xcrun shims that GHC and prepare-libs.sh call at /Applications/Xcode.app. The Show runner steps print the SDK in use. This run tests the backend build on the new image; core comes from run 38702428043's artifact. --- .github/workflows/ios-sim.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/ios-sim.yml b/.github/workflows/ios-sim.yml index 05aee57fef..3c4f79bdb7 100644 --- a/.github/workflows/ios-sim.yml +++ b/.github/workflows/ios-sim.yml @@ -21,6 +21,8 @@ env: BACKEND_PKG: ios-sim-backend.zip HOMEBREW_NO_AUTO_UPDATE: 1 HOMEBREW_NO_INSTALL_CLEANUP: 1 + # newer images add Command Line Tools whose macOS SDK the default Xcode's linker cannot read + DEVELOPER_DIR: /Applications/Xcode.app/Contents/Developer jobs: plan: @@ -71,6 +73,8 @@ jobs: sysctl -n hw.ncpu hw.memsize df -h / xcodebuild -version + xcrun --show-sdk-path + ls /Library/Developer/CommandLineTools/SDKs || true # without ~/.cabal, cabal 3.10 keeps its store in XDG directories, not where setup-haskell reports it - name: Use ~/.cabal for cabal @@ -133,6 +137,13 @@ jobs: - name: Checkout code uses: actions/checkout@v4 + - name: Show runner + run: | + sw_vers + xcodebuild -version + xcrun --show-sdk-path + ls /Library/Developer/CommandLineTools/SDKs || true + - name: Use ~/.cabal for cabal run: echo "CABAL_DIR=$HOME/.cabal" >> "$GITHUB_ENV" @@ -192,6 +203,8 @@ jobs: sw_vers df -h / xcodebuild -version + xcrun --show-sdk-path + ls /Library/Developer/CommandLineTools/SDKs || true xcrun simctl list runtimes - name: Download core library