[Bug]: Device Hub opens for stable Xcode when Xcode 27 beta is co-installed
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 74/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- macos, typescript
- 領域
- mobile-dev, tooling
調査の方向性
src/utils/focus-policy.ts のフロントエンド候補の順序から始め、次に src/mcp/tools/simulator/build_run_sim.ts が boot 後に policy を呼び出す方法を追跡します。stable と beta の Xcode をインストールし、DEVELOPER_DIR で stable を選択した状態で再現します。完了条件は、自動 GUI が選択した Xcode が所有するフロントエンドを起動し、headless モードでは引き続きどのフロントエンドも開かないことです。
索引モデルが issue の本文から書いたものです。
説明
Bug Description
When Xcode 26 stable and Xcode 27 beta are installed together, XcodeBuildMCP
2.7.0 opens the beta-only Device Hub even when DEVELOPER_DIR explicitly
selects stable Xcode and the target is an iOS 26.5 simulator.
This crosses the selected toolchain boundary. Stable Xcode 26 ships
Simulator.app; Device Hub is bundled only inside Xcode 27 beta on this host.
The cause appears to be the frontend candidate order in
focus-policy.ts:
the Device Hub candidate is attempted first for every non-headless simulator
launch—via devices:// when a simulator ID is known, or open -a DeviceHub
otherwise—without consulting the active Xcode selected by DEVELOPER_DIR.
Simulator.app is only a fallback if opening Device Hub fails. build_run_sim
invokes this policy automatically after boot.
The same behavior is still present on main as of 2026-08-10.
Debug Output
Platform: macOS 26.5.2 (25F84), arm64
Stable Xcode: 26.6 (17F113)
Beta Xcode: 27.0 (27A5237l)
Selected DEVELOPER_DIR: /Applications/Xcode.app/Contents/Developer
XcodeBuildMCP: 2.7.0
Codex CLI: 0.144.1
Stable frontend:
/Applications/Xcode.app/Contents/Developer/Applications/Simulator.app
bundle id: com.apple.iphonesimulator
Beta frontend:
/Applications/Xcode-beta.app/Contents/Applications/DeviceHub.app
bundle id: com.apple.dt.Devices
Target simulator:
iPhone 17 Pro, iOS 26.5
Control result with XCODEBUILDMCP_HEADLESS_LAUNCH=1:
build-and-run SUCCEEDED on the iOS 26.5 simulator
app launched successfully
no DevicesTrampoline process was created
Editor/Client
Codex desktop with Codex CLI 0.144.1
MCP Server Version
2.7.0
LLM
GPT-5 Codex
MCP Configuration
[mcp_servers.xcodebuildmcp]
command = "npx"
args = ["-y", "xcodebuildmcp@2.7.0", "mcp"]
env = {
DEVELOPER_DIR = "/Applications/Xcode.app/Contents/Developer",
XCODEBUILDMCP_ENABLED_WORKFLOWS = "simulator,ui-automation,debugging,logging",
}
Steps to Reproduce
- Install Xcode 26 stable at
/Applications/Xcode.app. - Install Xcode 27 beta at
/Applications/Xcode-beta.app. - Set
DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer. - Leave
XCODEBUILDMCP_HEADLESS_LAUNCHunset. - Select an available iOS 26.5 simulator by UDID.
- Run
open_simorbuild_run_sim. - Observe that Device Hub from Xcode 27 beta opens instead of Simulator.app
from the selected stable Xcode.
Expected Behavior
In automatic GUI mode, the active Apple toolchain should own the simulator
frontend:
- Xcode 26 stable selected -> Simulator.app
- Xcode 27 selected -> Device Hub
An explicit auto | simulator | device-hub preference would also work, with
auto derived from the Xcode selected by DEVELOPER_DIR rather than from the
machine-wide devices:// URL handler.
Headless mode should continue to suppress both frontends.
Actual Behavior
For every non-headless launch, XcodeBuildMCP tries Device Hub first. Because the
Xcode 27 beta installation registers devices://, that succeeds even though
stable Xcode is selected, so Simulator.app is never attempted.
Error Messages
No command error is emitted; the wrong GUI frontend opens successfully.
Related
#498 covers the separate but complementary problem of selecting the newest
simulator runtime within a stable OS major when a next-major beta is installed.
- 主要言語
- TypeScript
- スター
- 6.4k
- フォーク
- 320
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
getsentry/XcodeBuildMCP のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
getsentry/XcodeBuildMCP#520 ·
-
Warden weekly sweep オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
getsentry/XcodeBuildMCP#495 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
getsentry/XcodeBuildMCP#537 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
getsentry/XcodeBuildMCP#535 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 28/100
getsentry/XcodeBuildMCP#534 ·
getsentry/XcodeBuildMCP の issue をすべて見る
似ている issue
-
blocklist removal
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
MetaMask/eth-phishing-detect#296544 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
pastelsky/bundlephobia#1122 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
category/development priority/P2 scope/file-operations scope/testing type/enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
Enatega Customer and Rider app: Add-ons price is not visible to customer after order is placed. オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100