Repository navigation
feat(apple): support watchOS simulators through the XCUITest runner - #4752
Conversation
Size Report
Startup median (7 runs, lower is better):
|
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Apex Sentinel: 2 new findings on 58920c5. The verdict and the full list are in the summary comment.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
The code looks reasonable at 8ef3e17, and all 35 checks pass. CI does not run a live watch simulator, so the device behavior is still unproven at this head. The next step before merge is a live watch run at this commit, plus the private-set run the issue asks for. The only live run reported is the summary at a4221a2. Three later commits change device-facing paths: 05f7b26 adds Not blocking, take or leave: commands.md:370 says there is no name lookup without apps, but Two earlier inline threads no longer apply at this head, so please resolve them: the physical-watch discovery thread (docs now say discovery does not list a physical watch, and the runner seam applies the admission) #4752 (comment), and the action-button description thread (the text now reads "iPhone, iPad, and Apple Watch Ultra simulators", fixed in 05f7b26) #4752 (comment). |
The runner's host app and UI-test targets add the watchOS simulator SDK. A SwiftUI host replaces the UIKit host there. The runner gains watchOS branches: scroll turns the Digital Crown, back presses the navigation bar back button or swipes from the left edge, typing goes through the system input sheet, and one-finger planned gestures use the event synthesizer. Build, clean, and package scripts learn the watchos platform. Part of #4738. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Discovery classifies watch simulators as appleOs watchos and ranks them last for --platform ios. The interactor sentinel is gone. os/watchos/facts.ts admits only operations with a watch meaning (lifecycle, snapshot, touch, swipe and pan, the Digital Crown, back, typing, screenshots, the Action Button) and refuses the rest, so the per-module watchOS checks are removed. A physical watch is refused. Closes #4738. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review fixes: the input sheet's text view is read only when it exists, a planned gesture resolves the app window before synthesizing, a crown scroll waits for its deceleration, back presses only an unambiguous back button, and a screen-edge swipe starts on the edge as a coordinate drag. Watch simulators are classified from simctl identifiers only, never a user-chosen name, and rank below every other Apple device. The packaged SwiftPM manifest gets the same watchOS minimum. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…chOS default The explicit watchOS minimum made the two package manifests a new native clone. The runner builds for watchOS without it. The ADR cites the watch leaf by its repository path. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The always-loaded MCP scroll description has a byte budget, so the Digital Crown note moves to the CLI detail. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The watch fact leaf narrowed facts but the binding still carried clipboard, alert, settings, and log operations from the modules' own facts. The binding now drops every operation the watch refuses, and a test pins facts and bindings together. The action-button CLI detail names Apple Watch Ultra. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…the physical-watch docs createAppleRunnerRuntime reports the same watch facts as the platform runtime. Device discovery never lists a physical Apple Watch, so the docs say that instead of promising a refusal. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The PR-time runner build job gains a watchOS leg beside tvOS and visionOS, with its own swift-runner-watchos gate, so a watchOS-only build break fails the PR instead of the release. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
8ef3e17 to
e852f0b
Compare
… seam watch facts A back-button tap the runner could not dispatch now refuses instead of reporting success; the edge-swipe fallback stays unverified and the docs say so. The runner seam has a watch-device test. The watchOS docs name watch bundle IDs and describe the input sheet detection and its locale limit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A screen-edge swipe and the back fallback ran a coordinate drag that first waited for the app to idle, so on an animating screen the command hit the runner's main-thread watchdog even though the swipe landed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Apex Sentinel: 2 new findings on e852f0b. The verdict and the full list are in the summary comment.
Live run at head
|
| Command | Exit | Key output |
|---|---|---|
open com.apple.NanoSettings --platform ios --udid <watch> --session watch |
0 | Building Apple runner... Opened: com.apple.NanoSettings |
snapshot -i |
0 | 13 nodes: Notifications, Smart Stack, Control Center, General |
press 'label="Smart Stack"' --settle |
0 | Tapped label="Smart Stack" (104, 150); next snapshot shows [button] "Back", [text] "Smart Stack" |
gesture swipe right-edge |
0 | Flung; next snapshot is the Settings root (13 nodes) |
press 'label="Smart Stack"' --settle, then back --settle |
0, 0 | Back, settled after 1586ms: +12 -9 |
scroll down --settle / scroll up --settle (Digital Crown) |
0 / 0 | +4 -2 (Focus appears) / +2 -4 |
gesture swipe left-edge (contact from the right edge) |
0 | Flung |
open com.apple.NanoMaps, then swipe 170 124 40 124 |
0, 0 | Flung; map labels change: after the swipe the snapshot shows Voronezh, Kharkiv, Dnipro |
home (crown press) |
0 | Home |
open com.apple.MobileSMS, press Compose, press Create Message |
0, 0, 0 | New Message screen with [text-field] "Create Message" |
fill 'role=text-field' "On my way, 5 min" |
0 | Filled 16 chars; next snapshot shows [cell] "On my way, 5 min" |
screenshot final.png |
0 | 208x248, shows the committed message |
orientation landscape-left |
1 | UNSUPPORTED_OPERATION, details.reason: "unsupported-platform-leaf", hint watchOS has no device orientation. Not dispatched. |
close --session watch --shutdown |
0 | Closed: watch; the simulator reads Shutdown |
Private set: Series 11 (42mm), --ios-simulator-device-set /private/tmp/ad-cos-watch-set
| Command | Exit | Key output |
|---|---|---|
open com.apple.NanoSettings --platform ios --udid <watch> --ios-simulator-device-set <set> --session watch-set |
0 | Opened: com.apple.NanoSettings |
snapshot -i |
0 | 13 nodes |
press 'label="Smart Stack"' --settle |
0 | Tapped label="Smart Stack" (94, 137); next snapshot shows the Smart Stack screen |
close --session watch-set --shutdown |
0 | Closed: watch-set |
Found and fixed during this run
The first pass, at 7a133ca65c, showed that gesture swipe right-edge went back but returned MAIN_THREAD_TIMEOUT. The watchOS screen-edge drag, and the back edge-swipe fallback, waited for the app to idle before dragging, which an animating screen does not do inside the watchdog. 4141dd9ada bounds that wait. The run above is a full rerun at that head.
Review notes
- Applied: the docs name watch bundle IDs (aliases such as
settingsresolve tocom.apple.Preferences). They say the input sheet is detected by its keyboard, with Done found by its English label, and that other system languages fail withTEXT_INPUT_COMMIT_NOT_OBSERVED. They also say thebackedge-swipe fallback is unverified. - Applied:
performWatchBackmaps an undispatched Back-button tap to a refusal. - Applied:
runner-runtime.test.tsasserts that a watch device refuseswriteClipboardand admitstapPointon the runner seam. - Not applied: collapsing the admission into consumers.
bindbuilds its operations in about ten modules, and four of them (system, deployment, logs, network dump) recompute their own facts, so every future module would have to remember the watch rule.bindWatchOsOperationsapplies the same leaf rule by construction, andos/watchos/facts.test.tspins facts and bindings together for every operation. The leaf module is the one rule;inspectFacts,bind, and the runner seam call it. - feat(apple): support watchOS simulators through the XCUITest runner #4738 is amended: the watch face and its overlays are out of scope, and the completion condition that opened Notification Center from the face is removed. Row swipe actions were verified with the spike's fixture app (
SPIKE.md, gesture research); the system apps on the simulator have no row swipe actions to exercise.
The back edge-swipe fallback compares the screen before and after, and answers back_swipe_no_change when nothing popped. Typing waits for the input sheet to close after Done and reports TEXT_INPUT_COMMIT_NOT_OBSERVED when it stays open. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Live run at head
|
| Command | Exit | Key output |
|---|---|---|
open com.apple.NanoSettings --platform ios --udid <watch> --session watch |
0 | Building Apple runner... Opened: com.apple.NanoSettings |
snapshot -i |
0 | 13 nodes: Notifications, Smart Stack, Control Center, General |
back (root screen, no back button) |
1 | COMMAND_FAILED: The back swipe changed nothing. (back_swipe_no_change, may have reached the device) |
press 'label="Smart Stack"' --settle |
0 | Tapped label="Smart Stack" (104, 150); next snapshot shows [button] "Back", [text] "Smart Stack" |
gesture swipe right-edge |
0 | Flung; next snapshot is the Settings root (13 nodes) |
press 'label="Smart Stack"' --settle, then back --settle |
0, 0 | settled after 1555ms: +12 -9 (Settings root) |
scroll down --settle / scroll up --settle (Digital Crown) |
0 / 0 | +4 -2 (Focus appears) / +2 -4 |
gesture swipe left-edge (contact from the right edge) |
0 | Flung |
open com.apple.NanoMaps, scroll down 3 and press 104 178 (location prompt), then swipe 170 124 40 124 |
0, 0, 0, 0 | Flung; before the swipe the map shows Warsaw and Poland (27 nodes); after it neither is present (18 nodes) |
home (crown press) |
0 | Home |
open com.apple.MobileSMS, press Compose, press Create Message |
0, 0, 0 | New Message screen with [text-field] "Create Message" |
fill 'role=text-field' "On my way, 5 min" |
0 | Filled 16 chars after the sheet closed; the next snapshot shows the composed "On my way, 5 min" |
screenshot final.png |
0 | 208x248, shows the committed message |
orientation landscape-left |
1 | UNSUPPORTED_OPERATION, details.reason: "unsupported-platform-leaf", hint watchOS has no device orientation. Not dispatched. |
close --session watch --shutdown |
0 | Closed: watch; the simulator reads Shutdown |
Private set: Series 11 (42mm), --ios-simulator-device-set /private/tmp/ad-cos-watch-set
| Command | Exit | Key output |
|---|---|---|
open com.apple.NanoSettings --platform ios --udid <watch> --ios-simulator-device-set <set> --session watch-set |
0 | Opened: com.apple.NanoSettings |
snapshot -i |
0 | 13 nodes |
press 'label="Smart Stack"' --settle |
0 | Tapped label="Smart Stack" (94, 137); next snapshot shows [text] "Smart Stack" (10 nodes) |
close --session watch-set --shutdown |
0 | Closed: watch-set |
Found and fixed during the runs
The first pass, at 7a133ca65c, showed that gesture swipe right-edge went back but returned MAIN_THREAD_TIMEOUT. The watchOS screen-edge drag, and the back edge-swipe fallback, waited for the app to idle before dragging, which an animating screen does not do inside the watchdog. 4141dd9ada bounds that wait. 25a0267f19 then made the back fallback compare the screen before and after (back_swipe_no_change when nothing popped, as in the root-screen row), and made typing wait for the input sheet to close after Done. The tables above are a full rerun at 25a0267f19: 30 commands exit 0, and the two exit-1 rows are the expected refusals.
Review notes
- Applied: the docs name watch bundle IDs (aliases such as
settingsresolve tocom.apple.Preferences). They say the input sheet is detected by its keyboard, with Done found by its English label, and that other system languages fail withTEXT_INPUT_COMMIT_NOT_OBSERVED. They also describe theback_swipe_no_changeand sheet-commit behavior. - Applied:
performWatchBackmaps an undispatched Back-button tap or drag to a refusal and verifies the edge swipe (Apex, r4630958923). - Applied: typing confirms the input sheet closed after Done (Apex, r4630958936). Done is still matched by its English label: the sheet exposes no identifier or trait that names its commit button, and the docs state the locale limit.
- Applied:
runner-runtime.test.tsasserts that a watch device refuseswriteClipboardand admitstapPointon the runner seam. - Not applied: collapsing the admission into consumers.
bindbuilds its operations in about ten modules, and four of them (system, deployment, logs, network dump) recompute their own facts, so every future module would have to remember the watch rule.bindWatchOsOperationsapplies the same leaf rule by construction, andos/watchos/facts.test.tspins facts and bindings together for every operation. The leaf module is the one rule;inspectFacts,bind, and the runner seam call it. - feat(apple): support watchOS simulators through the XCUITest runner #4738 is amended: the watch face and its overlays are out of scope, and the completion condition that opened Notification Center from the face is removed. Row swipe actions were verified with the spike's fixture app (
SPIKE.md, gesture research); the system apps on the simulator have no row swipe actions to exercise.
|
The code looks right at 25a0267, but two device paths it changed have no live run yet. Compared with the earlier review at 8ef3e17 (#4752 (comment)), the back wording and the missing-Done and commit checks are now in place. The live evidence is still missing. 25a0267 changes two runner paths after the live run at 4141dd9. First, fill now also waits up to 3 s for Not blocking: The two threads from the earlier commits no longer apply, so please resolve them: performWatchBack now refuses an undispatched tap and answers back_swipe_no_change or back_swipe_unverified, and the missing-Done thread is covered by TEXT_INPUT_COMMIT_NOT_OBSERVED and the documented English-label limit. The physical-watch discovery and Action-button description threads are fixed at this head and can be resolved too. CI is still running: all 13 checks are queued or in progress, and none has failed. 'Runner Build (tvOS + visionOS + watchOS)' matters most here because it compiles the new watchOS leg and the Swift in 25a0267. Before merge, please post the live run at 25a0267 and get green CI, including the watchOS runner-build leg. |
The back fallback compared the first eight labels, so a ticking clock or timer could read as a navigation on a root screen. It now compares each element's type, identifier, and child count. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Apex Sentinel: 2 new findings on 25a0267. The verdict and the full list are in the summary comment.
On watchOS the interactive pop works only while the navigation back button is shown: hiding it (navigationBarBackButtonHidden or a hidden navigation bar) disables the edge swipe too. The fallback could never succeed, so back now presses the button or refuses with back_swipe_not_dispatched, sending nothing. gesture swipe right-edge stays available. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Live run at head
|
| Case | Command | Exit | Key output |
|---|---|---|---|
| 1 | open com.apple.MobileSMS --relaunch, press @e6 (Compose), press @e10 (Create Message) |
0, 0, 0 | New Message, then the input field |
| 1 | fill 'role=text-field' "On my way" |
0 | Filled 9 chars; next snapshot -i shows [cell] "On my way" |
| 2 | open com.apple.NanoSettings --relaunch, snapshot -i |
0, 0 | Settings root, 13 nodes, no Back button |
| 2 | back --json |
1 | COMMAND_FAILED, This screen has no navigation back button., details.reason: back_swipe_not_dispatched, dispatched: no |
| Back button shown | press 'label="Smart Stack"' --settle, then back |
0, 0 | [button] "Back" before; Back; next snapshot is the Settings root (13 nodes) |
| 3 (fixture) | press @e5 ("Hidden back"), then back --json |
0, 1 | Pushed screen (3 nodes, no Back button); back_swipe_not_dispatched, dispatched: no; the screen is unchanged |
| 3 (fixture) | press @e6 ("Hidden toolbar"), then back --json |
0, 1 | Pushed screen (2 nodes, no navigation bar); back_swipe_not_dispatched, dispatched: no |
close --session watch --shutdown |
0 | Closed: watch |
The full log also has failed attempts that came from my script, not the CLI. Two press calls ran with empty refs, because a shell variable was not word-split and because Messages reopened on an earlier draft. Two press calls used refs that a relaunch had expired. Each was rerun with a fresh snapshot, and the rows above are the reruns.
The default-set and private-set runs at 25a0267f19 cover the other commands. Since then only back, the edge-swipe helper's fallback, and docs have changed.
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Apex Sentinel: 1 new finding on 6806bc1. The verdict and the full list are in the summary comment.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Live
|
| Command | Exit | Key output |
|---|---|---|
open com.apple.MobileSMS --platform ios --udid <watch> --session watch |
0 | Opened: com.apple.MobileSMS |
snapshot -i |
1, then 0 | The first call on the just-booted simulator hit the daemon request timeout. The retry returned 10 nodes with [button] "Compose". |
press @e6 (Compose), press @e10 (Create Message) |
0, 0 | New Message, then the input field |
fill 'role=text-field' "On my way" |
0 | Filled 9 chars; next snapshot -i shows [cell] "On my way" |
close --session watch --shutdown |
0 | Closed: watch |
The back evidence at 6806bc1f63 still applies: back has not changed since.
This comment has been minimized.
This comment has been minimized.
|
Thanks for the update. At 03b1dbb, the input-sheet handling for unsupported and not-dispatched results and the text-free back pop are fixed. One defect remains in Run Could Of the earlier inline threads, #4752 (comment) and #4752 (comment) are fixed at this head, so please resolve them. #4752 (comment) is withdrawn: The face and app-grid outcomes of The Please fix |
…he session app forward home on watchOS was an app mutation that may launch, so the runner reactivated the session app before every press and a second home returned to the face instead of opening the app grid. watchOS home now takes a no-app launch policy and keeps the recorded-failure conversion. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
watchOS
|
| Command | Exit | Observed screen |
|---|---|---|
open com.apple.NanoSettings --platform ios --udid <watch> --session watch, snapshot -i |
0, 0 | Settings, 13 nodes |
home |
0 | Home |
screenshot home1.png |
0 | Watch face |
home |
0 | Home |
screenshot home2.png |
0 | App grid (still zooming in) |
close --session watch --shutdown |
0 | Closed: watch |
The screenshot between the presses did not bring Settings back either. The optional refactor (sampled-gesture dispatch shared by iOS and watchOS) is not taken here: the watch arm differs in surface resolution and edge-contact routing, so I kept it as a separate leaf function.
|
Thanks for the update. At f1b2791, the home launch policy from the earlier review (#4752 (comment)) is fixed, but the same rule is still broken for The rule: on watchOS a hardware press acts on the screen that is in the foreground, and never brings the session app forward first. Please make the rule hold in one place: no hardware press activates the session app on watchOS. The smallest change is to add watchOS to the no-activation branch of the The refocus is inferred from the activation path; there is no live watchOS action-button run yet. Please run it on an Apple Watch Ultra simulator in an open app session: The home evidence is satisfied. The face and app-grid outcomes rest on your table and captions. No unit test pins the watchOS home row, because the model tests run on the iOS host and the watchOS arm only compiles in the watchOS runner build. Checks so far: Smoke Tests (ios), Smoke Tests (macos), Coverage, Integration Tests and Runner Build (tvOS + visionOS + watchOS) have passed, and the watchOS leg ended in TEST BUILD SUCCEEDED. Build 0.21.41-nightly and one Smoke Tests job are still pending, and none has failed. There are no conflicts. On the open inline threads: the threads at #4752 (comment) and #4752 (comment) are fixed, so please resolve them. The thread at #4752 (comment) does not apply, because Before merge, route watchOS |
…face action-button (and home before it) reactivated the session app on watchOS, because only iOS skipped activation for presented-surface commands. watchOS now takes the same no-activation route, so home shares presentedSurfaceMutation with action-button and watchCrownPress is gone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This comment has been minimized.
This comment has been minimized.
…n refusal Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
watchOS hardware presses at head
|
| Command | Exit | Observed |
|---|---|---|
open com.apple.NanoSettings --platform ios --udid <ultra> --session ultra, snapshot -i |
0, 0 | Settings, 13 nodes |
home |
0 | Home |
screenshot |
0 | Watch face |
action-button |
0 | Pressed Action Button |
screenshot |
0 | The system Action Button sheet: "Choose what you'd like the Action button to do." Settings is not in front. |
appstate |
0 | com.apple.NanoSettings: runningBackgroundSuspended (not brought forward) |
close --session ultra --shutdown |
0 | Closed: ultra |
Apple Watch Series 11 (46mm)
| Command | Exit | Key output |
|---|---|---|
open com.apple.NanoSettings --platform ios --udid <series 11> --session series |
0 | Opened |
action-button --json |
1 | UNSUPPORTED_OPERATION, details.reason: hardware_control_unavailable, dispatched: no, hint The Action Button is on Apple Watch Ultra. Open an Apple Watch Ultra simulator. |
close --session series --shutdown |
0 | Closed: series |
At 485ab86445 the same Ultra sequence ran with one more home after action-button: it closed the Action Button sheet and showed the watch face, and appstate still read Settings as runningBackgroundSuspended. The face-then-app-grid pair from two consecutive home presses is the f1b279198a evidence above. Since then home has moved from .noApp to .presentedSurface, which also activates nothing on watchOS, as the appstate rows show.
…navigation bar A back-button tap that dispatched but did not pop reported success. back now waits up to 1 s for the navigation bar (its identity or the back button's presence) to change and otherwise answers back_swipe_unverified, as iOS does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
watchOS
|
| Command | Exit | Key output |
|---|---|---|
open com.apple.NanoSettings ..., press @e12 (General), press @e7 (About) |
0, 0, 0 | About: 16 nodes, [button] "Back" |
back |
0 | Back; next snapshot is General (14 nodes, Back button still shown, bar title changed) |
back |
0 | Back; next snapshot is the Settings root (13 nodes) |
back --json on the root |
1 | This screen has no navigation back button., back_swipe_not_dispatched, dispatched: no |
close --session watch --shutdown |
0 | Closed: watch |
The Ultra home and action-button evidence at ac8d720d83 still applies: those paths have not changed since.
Apex Sentinel · ✅ Approve · review of
|
| Command | What it does |
|---|---|
@apex-sentinel-staging note <context> |
Adds context; Sentinel re-checks the cited code |
@apex-sentinel-staging pivot <why> |
Says the finding is wrong; Sentinel re-checks the cited code |
@apex-sentinel-staging like |
Marks the finding as useful |
@apex-sentinel-staging dislike <why> |
Marks it as not useful, so it is not raised again |
On this conversation, comment @apex-sentinel-staging review to run a full review once again.
…d fold the watch polls The iOS and watchOS sampled gesture paths now hand their pointer samples to one dispatchSynthesizedPointerSamples helper, and the watch's three polling loops (input sheet open, sheet closed, back confirmation) share one helper. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Simplification at head
|
|
This PR is ready. The back confirmation from the earlier review (#4752 (comment)) is fixed at 47676bf: a watch Not blocking, and you can take or leave it: The earlier inline thread on back success (#4752 (comment)) no longer applies and can be resolved, because the confirmation now checks for a navigation bar change. CI is green: 36 checks, none failing, including the Runner Build leg that compiles the watchOS Swift. There are no conflicts. Nothing else needs to happen before merge. For the record, no unit test pins the watchOS trait rows or Update: 4ae2e56 landed while this was being posted. It refactors the shared synthesized-sample dispatch for iOS and watchOS, so I removed ready-for-human until that delta is reviewed. |
|
Ready again at 4ae2e56. The refactor only moves the shared synthesized-sample dispatch into one helper: the iOS path still runs the native planned gesture, returns its refusals, and passes the same app, resolved window, orientation and samples into the helper, which makes the same XCTest call with the same dispatch flag, outcome mapping and refusal hint. The helper has exactly two callers, the iOS branch and the watch leaf, and the watch poll folding keeps the navigation-bar back confirmation. CI is green, including the watchOS runner build. The label is back on. The non-blocking note from the 47676bf review still applies: |




⌚ agent-device now drives Apple Watch simulators
Same CLI, same runner, same refs and selectors as iOS. Point an agent at a watch and it can open apps, read the screen, tap, swipe, turn the Digital Crown, type, and go back.
Every frame above is the branch-built CLI on an Apple Watch Series 11 (46mm) simulator, watchOS 27.0, real time:
Summary
Adds watchOS simulators as an Apple OS leaf on the shared XCUITest runner. Closes #4738 (spike #4735).
packages/platform-apple/src/os/watchos/facts.tsadmits only watch interactions and refuses the rest, in facts and bindings.scroll up|downrotates it,homepresses it. One-fingerswipeandgesture swipe|pan|fling,back(the navigation Back button),fill/type, andaction-buttonon Ultra.app-switcher,orientation,keyboard,logs,record,apps, and other non-watch commands. Device discovery does not list physical watches.Validation
Live runs at 25a0267 (default and private set) and 6806bc1 (fill and back): see the evidence comments. Earlier head 8ef3e17 passed all CI checks. Branch CLI on Series 11 and Ultra 4 simulators (Xcode 27.1, watchOS 27.0): every admitted command above,
install,screenshot,action-button(Ultra),close --shutdown, and the refusals.pnpm build:xcuitest:watchosand the iOS runner build pass.Not reachable: the watch face and its overlays (Notification Center, Smart Stack), because commands bring the session app forward first. Media lives on the
pr-media/4752branch and can be deleted after merge.🤖 Generated with Claude Code