XcodeBuildMCP icon indicating copy to clipboard operation
XcodeBuildMCP copied to clipboard

Xcode 27 beta: UI automation still fails because bundled AXe looks for SimulatorKit under PrivateFrameworks

Open judiazm opened this issue 5 months ago • 4 comments

Summary

This is a fresh reproduction of the Xcode 27 beta SimulatorKit.framework path issue discussed in #446. I am opening a new issue because #446 is closed as not planned, but the current released XcodeBuildMCP still reports UI automation as available while snapshot_ui / AXe-backed UI automation fails at runtime.

Build, install, launch, and screenshots still work. The broken part is semantic UI automation / accessibility hierarchy capture / element-ref tapping.

Environment

  • XcodeBuildMCP: 2.6.2
  • AXe reported by doctor: 1.7.1
  • Xcode: Xcode 27.0, build 27A5194q
  • Active developer dir: /Applications/Xcode-beta.app/Contents/Developer
  • macOS/Darwin: 27.0.0
  • Host arch: arm64
  • Client: Codex Desktop using XcodeBuildMCP tools

What works

These XcodeBuildMCP simulator actions worked against the same app/simulator:

  • build_run_sim after passing IPHONEOS_DEPLOYMENT_TARGET=16.4
  • install_app_sim
  • launch_app_sim
  • screenshot

What fails

mcp__xcodebuildmcp.snapshot_ui fails after the app is launched:

Failed to get accessibility hierarchy.
CLIError(errorDescription: "Failed to load essential private frameworks: Attempting to load a file at path '/Applications/Xcode-beta.app/Contents/Developer/Library/PrivateFrameworks/SimulatorKit.framework', but it does not exist")

The framework exists in the Xcode 27 beta bundle at the new location:

/Applications/Xcode-beta.app/Contents/SharedFrameworks/SimulatorKit.framework

The old path does not exist:

/Applications/Xcode-beta.app/Contents/Developer/Library/PrivateFrameworks/SimulatorKit.framework

Steps to reproduce

  1. Use Xcode 27 beta as the active Xcode:
xcode-select -p
# /Applications/Xcode-beta.app/Contents/Developer
  1. Launch an iOS simulator app through XcodeBuildMCP.
  2. Call snapshot_ui or another AXe-backed UI automation command.
  3. Observe the missing SimulatorKit.framework path error above.

Expected behavior

One of these would be useful:

  1. XcodeBuildMCP / bundled AXe supports both Xcode 26 and Xcode 27 framework locations.
  2. XcodeBuildMCP doctor detects this specific Xcode 27 beta mismatch and reports UI automation as unsupported instead of available.
  3. The docs explicitly say that Xcode 27 beta UI automation is unsupported for now, with a recommended workaround.

Actual behavior

Doctor reports UI automation as available, and build/run/screenshot tools work, but UI hierarchy/tap automation fails when the bundled AXe path loader tries the old Xcode 26 private-framework path.

Why this matters

For Codex/XcodeBuildMCP workflows, this failure makes the tool look partially healthy: agents can build, install, launch, and capture screenshots, but cannot use the intended semantic UI automation APIs. That causes agents to fall back to less reliable visual or desktop-level control even though the simulator is otherwise working.

judiazm avatar Jun 23 '26 02:06 judiazm

@judiazm Did you find any workaround for this issue? I've stumbled across the same issue and haven’t found a solution by now.

biehlermi avatar Jul 18 '26 08:07 biehlermi

Yes I'm working on it, a fix should be out shortly.

On Sat, Jul 18, 2026 at 9:18 AM Michael Biehler @.***> wrote:

biehlermi left a comment (getsentry/XcodeBuildMCP#453) https://github.com/getsentry/XcodeBuildMCP/issues/453#issuecomment-5010555932

@judiazm https://github.com/judiazm Did you find any workaround for this issue? I've stumbled across the same issue and haven’t found a solution by now.

— Reply to this email directly, view it on GitHub https://github.com/getsentry/XcodeBuildMCP/issues/453?email_source=notifications&email_token=AAEZ6SLDT5H6V6IQIXDBJST5FMXDVA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKMBRGA2TKNJZGMZKM4TFMFZW63VGMFZXG2LHN2SWK5TFNZ2KYZTPN52GK4S7MNWGSY3L#issuecomment-5010555932, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEZ6SNHIL6Y6JWKVIXKJLL5FMXDVAVCNFSNUABFKJSXA33TNF2G64TZHM4TINJVGUYTGNRRHNEXG43VMU5TINZSGIYTMNRRGQYKC5QC . You are receiving this because you were assigned.Message ID: @.***>

cameroncooke avatar Jul 20 '26 09:07 cameroncooke

Verified and fixed on main.

AXe 1.7.1 reproduces the reported Xcode 27 failure because it only checks Contents/Developer/Library/PrivateFrameworks/SimulatorKit.framework. AXe #60 added the Xcode 27 Contents/SharedFrameworks lookup while retaining the legacy fallback, and its validation included a successful snapshot_ui capture under Xcode 27.

XcodeBuildMCP #479 updates the bundled AXe pin to 1.8.0. I also verified that AXe 1.8.0 loads the simulator frameworks under Xcode 27 beta 4, where 1.7.1 fails with the exact error reported here.

The fix will be included in the next XcodeBuildMCP release. Until then, 2.6.2 remains affected; an explicit AXe 1.8.0 override is the workaround.

cameroncooke avatar Jul 21 '26 17:07 cameroncooke

Data point for anyone landing here from the stable Xcode 27.0 release rather than the betas.

Environment: macOS 26.6.2 (25G83), Xcode 27.0 (27A266a), DeviceHub.app 27.0 (255.2.6.6), no Simulator.app and no Xcode 26 co-installed, iPhone 17 Pro Max on iOS 26.4.

  • XcodeBuildMCP 2.3.2 (bundled AXe 1.5.2): every axe-backed tool (tap, snapshot_ui, ...) fails with Failed to load essential private frameworks: Attempting to load a file at path '/Applications/Xcode.app/Contents/Developer/Library/PrivateFrameworks/SimulatorKit.framework', but it does not exist. build_run_sim and screenshot keep working. SimulatorKit is present at Xcode.app/Contents/SharedFrameworks/ and still exports SimDeviceLegacyHIDClient.
  • XcodeBuildMCP 2.7.0 (bundled AXe 1.8.0): axe describe-ui --udid <booted> returns the full accessibility tree through Device Hub. Verified by running the bundled binary directly with DYLD_FRAMEWORK_PATH pointed at libexec/bundled/Frameworks.

One Homebrew note: on a recent brew, brew upgrade xcodebuildmcp refuses the tap until brew trust --formula getsentry/xcodebuildmcp/xcodebuildmcp has been run.

gotnull avatar Sep 16 '26 03:09 gotnull