Skip to content

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
mainfrom
agy2
Draft

fablab503-collab wants to merge 3 commits into
mainfrom
agy2

Conversation

@fablab503-collab

@fablab503-collab fablab503-collab commented Nov 2, 2026 •

Copy link
Copy Markdown
Owner

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 with Xcode_26.6.app and the iPhoneOS26.5.sdk:

    • cannot find 'sceneAccessory' in scope
    • cannot find 'ExternalNonInteractiveAccessory' in scope
    • ToolbarItem … has no member 'visibilityPriority'
    • dismissalConfirmationDialog … is unavailable in iOS

    These are all newer SDK APIs.

Fix: use GitHub's xcode-27 hosted machine as the default RUNNER_IMAGE. This is a one-line change. The RUNNER_IMAGE repository variable still overrides it, and self-hosted runners (upstream utmapp) are not affected.

Another way, with no code change: set the repository variable RUNNER_IMAGE to xcode-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.

  • All 11 sysroots were rebuilt on xcode-27, which took about 4 hours.
  • All 8 app builds passed: Universal Mac, macOS arm64 and x86_64, iOS, iOS-SE, iOS-Remote, visionOS and visionOS-SE.
  • Package and Submit were skipped, which is normal on a pull request.

So /Applications/Xcode.app works 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.

claude and others added 3 commits October 28, 2026 08:19
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants