[Bug]: iPhone Duo (foldable) simulator: snapshot_ui works, tap/touch/key input never lands, screenshot cannot target the lit panel
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 35/100
- Type d'issue
- Bug
- Clarté
- Plutôt claire
- Activité
- Active
- Stack technique
- typescript
- Domaine
- mobile-dev, testing-qa, tooling
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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.
- Langage dominant
- TypeScript
- Étoiles
- 6.6k
- Forks
- 329
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Préparer son environnement
Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de getsentry/MobileBuildMCP
-
bug
Difficulté 1/5 Moins d'une heure Accessibilité débutants 88/100
getsentry/MobileBuildMCP#576 ·
-
Warden weekly sweepOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
getsentry/MobileBuildMCP#495 ·
-
Difficulté 3/5 Une demi-journée Accessibilité débutants 42/100
getsentry/MobileBuildMCP#577 ·
-
Difficulté 4/5 3-5 jours Accessibilité débutants 48/100
getsentry/MobileBuildMCP#575 ·
-
Difficulté 3/5 1-2 jours Accessibilité débutants 65/100
getsentry/MobileBuildMCP#573 ·
Toutes les issues de getsentry/MobileBuildMCP
Issues similaires
-
sumHorizontal, maxHorizontal, minHorizontal, allHorizontal, anyHorizontal, struct and argSortBy treat strings as literals instead of column namesPeut-être pris @tomaionescu l’a pris aujourd’hui. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
pola-rs/nodejs-polars#486 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
jaegertracing/jaeger-ui#4853 ·
Les mainteneurs répondent en général sous 1 jour
-
area/plugins platform/linux reproduced type/bug version/v2
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
anomalyco/opencode#66970 · 3 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
area:tui enhancement platform:macos
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
anthropics/claude-code#112838 ·
-
Add: Sports First TV (US)Ouverteapproved check:passed streams:add
Difficulté 2/5 1-3 heures Accessibilité débutants 66/100
Les mainteneurs répondent en général sous 1 jour