Repository navigation
ci: build on macos-26/Xcode 26 toolchain - #1
Merged
Merged
Conversation
macos-14/Xcode 15.4 (macOS 14 SDK, Swift 5.10) cannot compile the Tahoe Liquid Glass APIs and errors on Swift-6-region-isolation-safe var captures. Build on macos-26 (default Xcode 26.x, macOS 26 SDK, Swift 6.x) to match the dev/release environment; drop the stale Xcode pin; scope the SwiftPM cache to the runner image; record the toolchain in CI logs. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Build CI on the
macos-26runner (default Xcode 26.x) instead of the pinnedmacos-14/ Xcode 15.4.Why
The
Swiftworkflow has failed on every push since 2026-05-21 — 33 compile errors across three files. All trace to a stale CI toolchain, not the source:ReaderToolbar.swift(4 errors): uses macOS 26 Tahoe Liquid Glass APIs (GlassEffectContainer,.glassEffect) that don't exist in the macOS 14 SDK Xcode 15.4 ships.if #available(macOS 26, *)gates runtime availability — it can't make a symbol compile against an older SDK.Comic.swift+CompressionService.swift(29 errors): captured-vardiagnostics that are errors under Swift 5.10 but warnings under Swift 6 (region-based isolation proves them safe) — which is why the local Swift 6.2 release build succeeds.Building on a macOS 26 SDK / Swift 6.x toolchain resolves all 33 at once, and matches the actual dev/release environment.
Changes (CI config only — no app source touched)
runs-on: macos-14→macos-26xcode-selectpin to Xcode 15.4 (a stale pin is what broke this); use the runner default Xcode 26.xToolchain versionsstep (xcodebuild/swift/xcrun) so every log records what builtImageOSso the bump can't restore an incompatible.buildUnchanged
Package.swift(swift-tools-version: 5.10), the macOS 14 deployment target (runtime requirement stays Sonoma+), and all application source.Verification
Locally green on Swift 6.2.4 / macOS 26 SDK (the toolchain family this CI now uses):
swift build -c release→ 0 errors;swift test --parallel→ 38/38 pass. This PR's CI run is the live confirmation onmacos-26.🤖 Generated with Claude Code