[Bug]: iPhone Duo (foldable) simulator: snapshot_ui works, tap/touch/key input never lands, screenshot cannot target the lit panel
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- typescript
- Área
- mobile-dev, testing-qa, tooling
Línea de trabajo
Start at the simulator UI-automation entry points for snapshot_ui, tap, and screenshot, then trace how element coordinates and simctl screenshot arguments are passed. Reproduce with the iPhone Duo in folded and unfolded postures and compare it with the iPhone 18 Pro control. Done means the supported behavior is verified or the limitation is narrowed to XcodeBuildMCP versus CoreSimulator or AXe.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Bug Description
On the iPhone Duo foldable simulator that ships with Xcode 27.1 beta, snapshot_ui returns a correct accessibility tree and screenshot returns a correct image, but no input tool has any effect: tap by elementRef reports success and nothing changes on screen. This holds in both postures (folded and unfolded, set by hand in Device Hub). I could not find any input path that works, including calling the bundled AXe 1.8.0 directly, so this may be a CoreSimulator or AXe limitation rather than something XcodeBuildMCP does wrong. Filing it here because XcodeBuildMCP owns tap/screenshot and bundles AXe, and because two related gaps are in XcodeBuildMCP's control:
screenshot(andxcrun simctl io <UDID> screenshot, which it wraps) always captures the inner panel. Folded, that panel is off, so every screenshot is black whilesnapshot_uireports a correct tree from the cover panel. There is no way to pass--display=1through the tool to capture the lit cover panel.snapshot_uiframes come back in a portrait coordinate space (root 466 x 678 pt, which is the cover panel's point size) even when the lit inner panel is landscape 951 x 669 pt, so the tool taps at a rotated point. After a SpringBoard restart inside the simulator the frames flip to landscape. Either way the tap still does not land, so this looks like a symptom rather than the cause.
Control: on an iPhone 18 Pro simulator (same Xcode 27.1, same iOS 27.1 runtime, same XcodeBuildMCP 2.7.0 session), snapshot_ui then tap on the Accessibility elementRef navigates into the Accessibility pane as expected (new screenHash, back button and VoiceOver rows in the next snapshot, screenshot changed). So the failure is specific to the two-display Duo.
Device: com.apple.CoreSimulator.SimDeviceType.iPhone-Duo, runtime iOS 27.1 (24A94401). Inner panel 2853 x 2007 px unfolded, cover panel 1398 x 2034 px.
Debug Output
⚙️ XcodeBuildMCP Doctor
Generated: 2026-09-21T01:31:28.923Z
Server Version: 2.7.0
Output Mode: Redacted (default)
System Information
platform: darwin
release: 25.6.0
arch: arm64
cpus: 8 x Apple M3
memory: 16 GB
hostname: <redacted>
username: <redacted>
homedir: /Users/<redacted>
tmpdir: /var/folders/b6/g7g_k9tx7x5ffmw91f5ycp000000gn/T
Node.js Information
version: v24.20.0
execPath: /nix/store/v2x67wfihfy1366kmi6ccp78k657afya-nodejs-slim-24.20.0/bin/node
pid: 71435
ppid: 71430
platform: darwin
arch: arm64
cwd: <repo>
argv: /nix/store/v2x67wfihfy1366kmi6ccp78k657afya-nodejs-slim-24.20.0/bin/node /Users/<redacted>/.npm/_npx/6389024b78b4e852/node_modules/xcodebuildmcp/build/doctor-cli.js
Process Tree
(omitted: contains local session and credential material)
Xcode Information
version: Xcode 27.1 - Build version 27A9269
path: /Applications/Xcode.app/Contents/Developer
selectedXcode: /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild
xcrunVersion: xcrun version 72.
Dependencies
axe: 1.8.0
mise: Not found
Environment Variables
INCREMENTAL_BUILDS_ENABLED: (not set)
DEVELOPER_DIR: (not set)
HOME: /Users/<redacted>
USER: <redacted>
TMPDIR: /var/folders/b6/g7g_k9tx7x5ffmw91f5ycp000000gn/T/
NODE_ENV: (not set)
SENTRY_DISABLED: (not set)
AXE_PATH: (not set)
XBMCP_LAUNCH_JSON_WAIT_MS: (not set)
XCODEBUILDMCP_DEBUGGER_BACKEND: (not set)
XCODEBUILDMCP_UI_DEBUGGER_GUARD_MODE: (not set)
XCODEBUILDMCP_RUNTIME: cli
XCODEBUILDMCP_SILENCE_LOGS: true
PATH
(omitted)
UI Automation (axe)
Available: Yes
UI Automation Supported: Yes
Simulator Video Capture Supported (AXe >= 1.1.0): Yes
UI-Debugger Guard Mode: error
Incremental Builds
Enabled: No
xcodemake Binary Available: No
Makefile exists (cwd): (not checked: incremental builds disabled)
Mise Integration
Running under mise: No
Mise available: No
Debugger Backend (DAP)
lldb-dap available: Yes
Selected backend: dap
Manifest Tool Inventory
Total Unique Tools: 82
Workflow Count: 15
coverage: 2 tools
debugging: 8 tools
device: 15 tools
doctor: 1 tools
macos: 13 tools
project-discovery: 5 tools
project-scaffolding: 2 tools
session-management: 5 tools
simulator-management: 10 tools
simulator: 20 tools
swift-package: 8 tools
ui-automation: 14 tools
utilities: 1 tools
workflow-discovery: 1 tools
xcode-ide: 5 tools
Runtime Tool Registration
Enabled Workflows: 0
Registered Tools: 0
Note: Runtime registry unavailable.
Xcode IDE Bridge (mcpbridge)
Workflow enabled: No
mcpbridge path: /Applications/Xcode.app/Contents/Developer/usr/bin/mcpbridge
Xcode running: true
Connected: No
Bridge PID: (none)
Proxied tools: 0
Last error: (none)
Note: Bridge debug tools (status/sync/disconnect) are only registered when debug: true
Tool Availability Summary
Build Tools: Available
UI Automation Tools: Available
Incremental Build Support: Not available
Sentry
Sentry enabled: Yes
Troubleshooting Tips
If UI automation tools are not available, install axe: brew tap cameroncooke/axe && brew install axe
If incremental build support is not available, install xcodemake (https://github.com/cameroncooke/xcodemake) and ensure it is executable and available in your PATH
To enable xcodemake, set environment variable: export INCREMENTAL_BUILDS_ENABLED=1
For mise integration, follow instructions in the README.md file
✅ Doctor diagnostics complete
Doctor run complete. Please include this output when reporting issues.
Process Tree and PATH sections omitted: on this host the doctor's process tree prints the parent MCP client's command line, which includes a bearer token.
Editor/Client
Claude Code 2.1.278 (project .mcp.json entry) and Codex CLI 0.155.1 ([mcp_servers.xcodebuildmcp], npx --yes [email protected] mcp). Same result from both clients.
MCP Server Version
2.7.0 (AXe 1.8.0 bundled). 2.6.2 cannot start AXe 1.7.1 on Xcode 27 at all (SimulatorKit.framework does not exist, since Xcode 27 moved it to Contents/SharedFrameworks), so 2.7.0 is the first version that can be tested here.
LLM
Claude Fable 5.1 (Claude Code) and GPT-6 Astra (Codex CLI). The same taps were also issued by hand with the bundled axe binary, outside any model, with the same result.
MCP Configuration
{
"mcpServers": {
"xcodebuildmcp": {
"command": "npx",
"args": ["--yes", "[email protected]", "mcp"],
"env": {
"XCODEBUILDMCP_ENABLED_WORKFLOWS": "simulator,ui-automation,debugging,logging"
}
}
}
}
Steps to Reproduce
- Xcode 27.1 beta (27A9269).
xcrun simctl create duo com.apple.CoreSimulator.SimDeviceType.iPhone-Duo com.apple.CoreSimulator.SimRuntime.iOS-27-1, boot it. It boots folded. session_set_defaultswith that UDID,launch_app_simwithcom.apple.Preferences.snapshot_ui: correct tree (Settings sidebar rows).screenshot: all black (inner panel is off).xcrun simctl io <UDID> screenshot --display=1shows Settings on the cover panel, but the tool cannot request that display.- Unfold the device in Device Hub (there is no
simctlposture subcommand).screenshotnow shows a landscape split view.snapshot_uistill correct. tapthe elementRef of a sidebar row such asAccessibility, or of theOpenbutton on anOpen in "App"?alert. The tool reportsSUCCEEDEDwith a point such as(354, 401).wait_for_uiwith a text predicate times out, the nextsnapshot_uireturns the samescreenHash, and the screenshot is pixel-identical.- Bypass XcodeBuildMCP and call the bundled AXe directly with
DYLD_FRAMEWORK_PATH=<pkg>/bundled/Frameworks <pkg>/bundled/axe .... All of these report success and change nothing:tap -x 354 -y 401(portrait frame from the AX tree)tap -x 549 -y 354(the same button in the landscape frame the screenshot shows)tap --label Open,tap --label "Enter URL manually"touch --down/touch --upat the same pointkey 40(Return),key 44(Space),key 41(Escape),key-sequence 43,44button home(the system alert stays up)
describe-uishows the Application root frame as{x:0, y:0, width:466, height:678}with the app's group at{width:669, height:951}while the lit panel is 951 x 669 pt landscape. Afterxcrun simctl spawn <UDID> launchctl kickstart -k system/com.apple.SpringBoardthe frames come back landscape (for exampleEnter URL manuallyat{x:32, y:175.7, width:803, height:17.7}); taps at those points also do nothing.
Expected Behavior
tap on an elementRef from snapshot_ui activates that element on whichever panel is lit, and screenshot captures the lit panel (or exposes a display selector).
Actual Behavior
Every input tool reports success and has no effect on the Duo, in both postures. screenshot targets the inner panel only, so it is black while folded. snapshot_ui is correct in both postures.
Error Messages
None. Every tool call returns SUCCEEDED. Example tap result:
{"summary":{"status":"SUCCEEDED"},"action":{"type":"tap","elementRef":"e219","x":354,"y":401}}
followed by wait_for_ui WAIT_TIMEOUT and an unchanged screenHash.
Written with the help of Claude Fable 5.1 in Claude Code; every observation above was reproduced by hand on the machine that produced the doctor output.
- Lenguaje dominante
- TypeScript
- Estrellas
- 6.6k
- Forks
- 329
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
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/MobileBuildMCP
-
bug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
getsentry/MobileBuildMCP#576 ·
-
Warden weekly sweepAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
getsentry/MobileBuildMCP#495 ·
-
Dificultad 3/5 Medio día Aptitud para principiantes 42/100
getsentry/MobileBuildMCP#577 ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
getsentry/MobileBuildMCP#575 ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 65/100
getsentry/MobileBuildMCP#573 ·
Todos los issues de getsentry/MobileBuildMCP
Issues similares
-
sumHorizontal, maxHorizontal, minHorizontal, allHorizontal, anyHorizontal, struct and argSortBy treat strings as literals instead of column namesPosiblemente ocupada @tomaionescu la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
pola-rs/nodejs-polars#486 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
jaegertracing/jaeger-ui#4853 ·
Los mantenedores suelen responder en 1 día
-
area/plugins platform/linux reproduced type/bug version/v2
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
anomalyco/opencode#66970 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
area:tui enhancement platform:macos
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
anthropics/claude-code#112838 ·
-
Add: Sports First TV (US)Abiertoapproved check:passed streams:add
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
Los mantenedores suelen responder en 1 día