Support simulators in a custom device set (simctl --set / -DVTSimulatorSetLocation)
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 48/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- typescript
- Lĩnh vực
- mobile-dev, tooling
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- TypeScript
- Star
- 6.6k
- Fork
- 329
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của getsentry/MobileBuildMCP
-
bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
getsentry/MobileBuildMCP#576 ·
-
Warden weekly sweepĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
getsentry/MobileBuildMCP#495 ·
-
Độ khó 3/5 Nửa ngày Mức phù hợp với người mới 42/100
getsentry/MobileBuildMCP#577 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
getsentry/MobileBuildMCP#575 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 65/100
getsentry/MobileBuildMCP#573 ·
Tất cả issue của getsentry/MobileBuildMCP
Issue tương tự
-
Release utils decode git output chunk by chunk, so a multi-byte character can turn into U+FFFDCó thể đã có người làm @goranai đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 2 ngày
-
Task retarget keeps the old host in task scope and adds the new host in a form that matches nothingCó thể đã có người làm @chaitanya0305 đã nhận hôm nay. Đang mởbug P2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
BaaRai/ARTEX#652 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
compiler-explorer/compiler-explorer#9710 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
test(web): RevealArtwork's warm tests flake on CI because a 0 ms idle timeout means no deadlineĐang mởbug effort:S P3
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
nightscout/nocturne#4556 ·
Maintainer thường phản hồi trong vòng 1 ngày