iOS Simulator panel attach fails with "No booted simulator found" on Xcode-beta (DeviceHub replaces Simulator.app)
Environment
- macOS 27.0 (26A5378n)
- Xcode 27 beta (27A5218g) — Simulator.app is replaced by DeviceHub.app at
/Applications/Xcode-beta.app/Contents/Applications/DeviceHub.app
- Claude Code 2.1.146
- Runtime: iOS 27.0 (24A5380i)
Repro
- Boot a sim headlessly (e.g. as build/ship tooling does):
xcrun simctl boot <udid> xcrun simctl list devices bootedcorrectly reports the device as(Booted)- Call the iOS Simulator tool's
attachaction
Actual
attach returns "No booted simulator found. Boot one with: xcrun simctl boot <device> — then retry this action." even though the device is genuinely booted.
Investigation
This isn't just "no GUI window open" — I tested that directly:
simctl bootalone leaves DeviceHub running as a process with zero windows (confirmed viaosascript ... tell process "DeviceHub" to count windows→0).- Manually running
open "/Applications/Xcode-beta.app/Contents/Applications/DeviceHub.app"immediately creates a real, correctly-titled window ("iPhone 17 Pro – iOS 27.0"). - Retried
attachafter the window existed (withsimctl list devices bootedstill confirming Booted) — still fails with the same error. ps auxshows only aDeviceHubprocess; nothing namedSimulatoris running anywhere.
This suggests the panel's booted-simulator detection may hardcode a check for the legacy Simulator.app process/bundle id rather than relying on xcrun simctl list devices booted, so it never recognizes a booted device on setups where Xcode-beta has replaced Simulator.app with DeviceHub.app.
Expected
attach should succeed whenever xcrun simctl list devices booted reports a booted device, regardless of whether the controlling GUI process is Simulator.app or DeviceHub.app.
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗