fix(ios): use current devicectl capture-screenshot syntax for physical devices - #1769
Merged
Conversation
…l devices The direct-capture fallback ran `devicectl device screenshot --device <id> <path>`, which current Xcode devicectl rejects with "Unknown option '--device'", forcing every physical-device screenshot into the slower XCTest runner path. Xcode's devicectl now requires `devicectl device capture screenshot --device <id> --destination <path>`. Fixes #1760
Size Report
Startup median (7 runs, lower is better):
Top changed chunks:
|
Member
Author
|
Exact-head review at |
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
devicectl device screenshot --device <id> <path>, which current Xcodedevicectlrejects withUnknown option '--device', forcing every physical-device screenshot into the slower XCTest runner fallback.devicectlnow requiresdevicectl device capture screenshot --device <id> --destination <path>. Updated the invocation in physical-device-screenshot.ts accordingly.Fixes #1760
Test plan
devicectlargs (device capture screenshot --device <id> --destination <path>) — physical-device-screenshot.test.tsnpx vitest run src/platforms/apple/core/__tests__/— 504/504 passingnpx tsc --noEmit— cleannpx oxlinton changed files — cleanthymikee-iphone):agent-device screenshotproduced a valid 1206x2622 PNG via the directdevicectlpath with no XCTest fallback triggered