Repository navigation
ci: build on the Xcode 27 hosted runner so the macOS 27 and iOS 27 SDKs exist - #3
Draft
fablab503-collab wants to merge 3 commits into
Draft
fablab503-collab wants to merge 3 commits into
fablab503-collab wants to merge 3 commits into
Conversation
The configuration job emits the runner as a quoted JSON string
('macos-26') for fromJSON() in runs-on, but Install Requirements
compared that raw string to env.RUNNER_IMAGE (macos-26). They never
matched, so on GitHub-hosted runners the step was always skipped and
build_dependencies.sh failed with "'six' not found". Self-hosted
runners still parse to an array and keep skipping the step.
Assisted-by: Claude:claude-opus-5-5
With Install Requirements now running on hosted runners, the sysroot build gets to Mesa's host build, which fails at meson.build:2092 with 'Dependency "SPIRV-Tools" not found'. llvmspirvlib is already found via Homebrew's pkg-config, so add the matching spirv-tools formula. Assisted-by: Claude:claude-opus-5-5
…Ks exist The UTM sources now use APIs that only ship with the Xcode 27 SDKs: AccessoryAccess and DiskImageKit on macOS, and sceneAccessory, ExternalNonInteractiveAccessory and ToolbarItem.visibilityPriority on iOS. The default hosted image (macos-26) only has Xcode 26.6 with the iOS 26.5 SDK, so 'Build UTM' fails with 'Unable to resolve module dependency' on macOS and 'cannot find ... in scope' on iOS even after the sysroots build. GitHub's xcode-27 hosted label runs macOS 27.0.1 with Xcode 27.1 as the default Xcode. Use it as the default RUNNER_IMAGE; the RUNNER_IMAGE repository variable still overrides it, and self-hosted runners are unaffected. Assisted-by: Claude:claude-code
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.
Summary (simple words)
UTM's code now uses new Apple building blocks that only come with Xcode 27. GitHub's normal Mac (
macos-26) only has Xcode 26.6. It's like asking someone to cook a recipe whose ingredients aren't in their kitchen yet. So the app build failed, even after #2 made the dependency step work.The logs from #2's run showed it clearly:
Mac (
Build UTM (Universal Mac)):Unable to resolve module dependency: 'AccessoryAccess'and'DiskImageKit'. Both exist only in the macOS 27 SDK.iOS (
Build UTM (arm64, iphoneos, ios-tci, iOS-SE)), built withXcode_26.6.appand theiPhoneOS26.5.sdk:cannot find 'sceneAccessory' in scopecannot find 'ExternalNonInteractiveAccessory' in scopeToolbarItem … has no member 'visibilityPriority'dismissalConfirmationDialog … is unavailable in iOSThese are all newer SDK APIs.
Fix: use GitHub's
xcode-27hosted machine as the defaultRUNNER_IMAGE. This is a one-line change. TheRUNNER_IMAGErepository variable still overrides it, and self-hosted runners (upstreamutmapp) are not affected.Another way, with no code change: set the repository variable
RUNNER_IMAGEtoxcode-27(Settings → Secrets and variables → Actions → Variables). That would also fix it. Only Daniel can set it.Depends on #2
This branch is built on top of #2 (the sysroot dependency fix). Without #2, the sysroot jobs on a fresh runner fail before the app build is even reached. Merge #2 first. Then only my one line is left in this pull request. I didn't push anything to #2's branch.
Testing
CI: all green.
xcode-27, which took about 4 hours.So
/Applications/Xcode.appworks on that image, and no more Xcode 27 errors were hiding behind the first ones.Not tested by a human yet. CI shows that it builds, not that the app works on a device. UTM's AI rules ask for a human test before a real upstream pull request, so this stays a draft inside Daniel's fork. It is not meant for
utmapp/UTM.The trailer is
Assisted-by: Claude:claude-code; the exact model name is left out because of a rule in the session that made it.I have read the AI contribution guidelines and have followed them to the best of my ability.