[Bug]: Device Hub opens for stable Xcode when Xcode 27 beta is co-installed
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 74/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- macos, typescript
- Área
- mobile-dev, tooling
Línea de trabajo
Empieza en src/utils/focus-policy.ts, en el orden de candidatos del frontend, y sigue después cómo src/mcp/tools/simulator/build_run_sim.ts invoca la policy después del arranque. Reprodúcelo con Xcode estable y beta instalados y con DEVELOPER_DIR seleccionando el estable; está terminado cuando la GUI automática inicia el frontend gestionado por el Xcode seleccionado, mientras que el modo headless sigue sin abrir ningún frontend.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- TypeScript
- Estrellas
- 6.4k
- Forks
- 320
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de getsentry/XcodeBuildMCP
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
getsentry/XcodeBuildMCP#520 ·
-
Warden weekly sweep Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
getsentry/XcodeBuildMCP#495 ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
getsentry/XcodeBuildMCP#537 ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
getsentry/XcodeBuildMCP#535 ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 28/100
getsentry/XcodeBuildMCP#534 ·
Todos los issues de getsentry/XcodeBuildMCP
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
ontola/atomic-server#1625 ·
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
melgarafael/DeskcommCRM#1451 ·
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
-
bug via-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
bot:ai-assisted component:compact-js status:untriaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
midnightntwrk/midnight-sdk#403 ·