Support simulators in a custom device set (simctl --set / -DVTSimulatorSetLocation)
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 48/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- typescript
- Bereich
- mobile-dev, tooling
Rechercherichtung
Start by reading build/utils/infer-platform.js and build/utils/simulator-utils.js, then trace the simulator tool calls named in the issue, including get_sim_app_path.js and screenshot.js. Map how session defaults and per-call parameters reach simctl, xcodebuild, and AXe, and check whether AXe accepts a device-set path. Done means the simulator tools can operate on a custom device set across the listed flows; the issue does not specify a test file.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Summary
XcodeBuildMCP can build and test on a simulator that lives outside Xcode's default device set, but its device tools cannot find that simulator. Simulator-sharing tools such as simlock keep leased devices in their own set (~/.simlock/devices/ios by default) so agents running in parallel cannot touch each other's devices. Supporting a device-set path would let XcodeBuildMCP drive those devices end to end.
Tested with XcodeBuildMCP 2.7.0, Xcode 27.2, iOS 26.5 simulator, simlock 0.6.0.
What works today
build_sim and test_sim work once the session defaults carry the UDID, simulatorPlatform: "iOS Simulator" and extraArgs: ["-DVTSimulatorSetLocation=<set path>"]. In one run that built a 251-test app and passed every test on the leased device.
What fails
Every device operation shells out to plain xcrun simctl, which only sees the default set. Neither --set nor DVTSimulatorSetLocation appears anywhere in build/.
- Platform inference. Without an explicit
simulatorPlatform, build and test stop with "Unable to determine the simulator platform", becauseinferPlatformFromSimctllists only the default set (build/utils/infer-platform.js). Name lookup inbuild/utils/simulator-utils.jshas the same limit. - App path.
get_sim_app_pathreports the simulator as not found. It resolves build settings without the session'sextraArgs(build/mcp/tools/simulator/get_sim_app_path.js), so the device-set flag never reachesxcodebuild -showBuildSettings. - Device commands.
install_app_sim,launch_app_sim,stop_app_sim,boot_sim, log capture andscreenshotcallxcrun simctl install|launch|terminate|boot|spawn|iowithout--set.screenshotfirst resolves the device throughxcrun simctl list devices -j(build/mcp/tools/ui-automation/screenshot.js) and reports it missing. - UI snapshot.
snapshot_uipasses the UDID to AXe (build/mcp/tools/ui-automation/snapshot_ui.js), which also looks only in the default set.
The tools' suggested next steps compound this. After build_sim the server suggests get_sim_app_path, and after get_app_bundle_id it suggests install_app_sim and launch_app_sim, all of which fail on such a device.
Proposal
A simulatorDeviceSet session default (and per-call parameter) that, when set:
- adds
--set <path>to everyxcrun simctlcall, including the list calls used for platform inference and name lookup; - adds
-DVTSimulatorSetLocation=<path>to everyxcodebuildcall, including the build-settings call behindget_sim_app_path; - passes the set to AXe, if AXe supports one.
An environment-variable fallback (for example SIMULATOR_DEVICE_SET) would let a lease wrapper hand the path over without an extra session_set_defaults call.
Related, smaller
test_sim returns every test case in its result even with progress: false (about 12k tokens for 251 tests). An option to return only the counts and failures would help agents running large suites.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 6.6k
- Forks
- 329
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus getsentry/MobileBuildMCP
-
bug
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 88/100
getsentry/MobileBuildMCP#576 ·
-
Warden weekly sweepOffen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
getsentry/MobileBuildMCP#495 ·
-
Schwierigkeit 3/5 Ein halber Tag Anfängerfreundlichkeit 42/100
getsentry/MobileBuildMCP#577 ·
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 48/100
getsentry/MobileBuildMCP#575 ·
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 65/100
getsentry/MobileBuildMCP#573 ·
Alle Issues in getsentry/MobileBuildMCP
Ähnliche Issues
-
sumHorizontal, maxHorizontal, minHorizontal, allHorizontal, anyHorizontal, struct and argSortBy treat strings as literals instead of column namesEvtl. vergeben @tomaionescu hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
pola-rs/nodejs-polars#486 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
jaegertracing/jaeger-ui#4853 ·
Maintainer antworten meist innerhalb von 1 Tag
-
area/plugins platform/linux reproduced type/bug version/v2
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
anomalyco/opencode#66970 · 3 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
area:tui enhancement platform:macos
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
anthropics/claude-code#112838 ·
-
approved check:passed streams:add
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
Maintainer antworten meist innerhalb von 1 Tag