You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ab84e0d
Browse filesBrowse the repository at this point in the historyBrowse files
fix(ios): read privacy support from simctl, not its help text
`simctl privacy` has no capability query, and its help text is not one. Xcode 26
(17C52) omits `camera` from the service list while granting it: the probe gate
refused `settings permission grant camera` and a Maestro `camera: allow` as
UNSUPPORTED_OPERATION on every flow that asked for the camera, while the raw
command worked (TCC `kTCCServiceCamera` 0 -> 2). The same omission was reported
for notifications on the runtimes in #2363.
Delegate the verdict to the command that would make the change. A service the
runtime cannot change answers EPERM — for a real service it withheld and for a
name it does not know alike — so generalize the notifications classifier to
every target and read the refusal from that call. Xcode 26 words grant/revoke
failures as "Failed to set access", which the old matcher did not look for, so
the generalization is required and not merely a widening.
Deletes the cached help probe, its parser, and the `privacy help` spawn before
the first permission change; a grant is now one simctl call.
Records why a Maestro `location: inuse` or `location: never` reaching the plain
Android target is correct rather than an unguarded iOS leak: `pm grant` leaves a
location appop of `foreground`, which is Android's only allow level. The
fan-out's ordered, stop-at-first-refusal shape is now stated in the versioned
Maestro compatibility reference, the replay docs, and the changelog, and the
"iOS all does not cover notifications" line is corrected: notifications has no
service on current runtimes, named or under `all`.
'Flows: launchApp (with clearState, permissions, and Apple-only launch arguments; permissions apply after state clearing but before launch, and a launchApp without permissions touches nothing — there is no silent all: allow default); setPermissions (mid-flow permission grants/denials/resets; all resolves in the backend — one simctl call on iOS, the declared permissions on Android — with specifics overriding after it; unservable names fail loudly instead of being skipped; unset fully resets and location: never denies on iOS; iOS all does not cover notifications — simctl has no notifications service on these runtimes, so targeted notifications fails loudly and all leaves it unchanged); runFlow file/inline with platform, visibility, and limited boolean conditions; onFlowStart/onFlowComplete; repeat.times and retry.',
2
+
'Flows: launchApp (with clearState, permissions, and Apple-only launch arguments; permissions apply after state clearing but before launch, and a launchApp without permissions touches nothing — there is no silent all: allow default); setPermissions (mid-flow permission grants, denials, and resets; all resolves in the backend — one simctl call on iOS, the declared permissions on Android — with specific entries overriding after it); runFlow file/inline with platform, visibility, and limited boolean conditions; onFlowStart/onFlowComplete; repeat.times and retry.',
3
3
'Interactions: tapOn, doubleTapOn, longPressOn, inputText on the focused element, eraseText, openLink, hideKeyboard, basic pressKey, and back; selector targets poll until available and support recursive index, childOf, above, below, leftOf, rightOf, containsChild, containsDescendants, points, and optional; outer command labels are metadata, not target selectors.',
4
4
'Assertions and navigation: assertVisible, assertNotVisible, assertTrue (literal values and ${VAR} lookups only; "", "false", "0", "null", and "undefined" are falsy, everything else is truthy), extendedWaitUntil, scroll, scrollUntilVisible, absolute/percentage/target swipe, takeScreenshot, waitForAnimationToEnd, clearState, and stopApp.',
5
5
'Scripts: ordered runScript file/env scripts with http.post, json, and output variables; evalScript inline expressions run flow-scoped JavaScript and write output.* leaves for later steps.',
6
6
]asconst;
7
7
8
8
exportconstMAESTRO_COMPAT_LIMITATIONS=[
9
+
'Permissions: every entry is one settings permission call, applied in order with all first; the step stops at the first entry the selected platform refuses, earlier entries stay applied, and the error names what landed. Android’s only allow level is while-in-use, so location: inuse and location: never mean allow and deny there, while location: always and photos: limited are Apple-only and fail. On iOS, which service a runtime changes is simctl privacy’s own verdict: current runtimes refuse a targeted notifications change and leave notifications untouched under all.',
9
10
'Runtime: iOS and Android only; launchApp.clearState and standalone clearState support Android and iOS simulators, launch arguments are Apple-only, and other standalone device utility/state commands are unsupported.',
10
11
'Expressions: evalScript is the only command whose payload is evaluated as JavaScript (flow env and prior output leaves are string-typed); with that exception, fields stay literal or ${VAR} lookup-only — assertTrue supports literals and bare lookups, repeat.while is unsupported, and other expression-shaped payloads fail loud.',
11
12
'Environment: flow env is the default, AD_VAR_* overrides it, and CLI -e KEY=VALUE wins over both.',
0 commit comments