XCUITest Setup Workflow
XCUITest setup routing and handoffs
Prepare shared Appium XCUITest prerequisites for iOS or tvOS. For a simulator,
complete this Skill after doctor and smoke checks pass. For a real device,
complete these shared prerequisites first and then continue with
skills/xcuitest-real-device-config/SKILL.md for trust, Developer Mode,
signing, provisioning, WebDriverAgent deployment, and connectivity. Hand later
runtime failures to skills/appium-troubleshooting/SKILL.md.
Required inputs
Confirm iOS or tvOS, simulator or real device, macOS host, global appium mode
or explicitly requested local npx appium mode, Xcode state, permissions, and
optional FFmpeg requests.
Workflow
- Load the global command profile by default or the local profile only when
explicitly requested.
- Load the macOS and XCUITest profiles, shared Appium setup basics, Xcode
prerequisites, and XCUITest decision, driver-doctor, and smoke references.
- Run
node tools/appium/setup/scripts/check-xcuitest-env.mjs --format summary --report auto; add
--appium-mode local only for explicitly requested local mode. Require
top-level summary.requiredOk: true.
Apply required fixes in technical dependency order and rerun affected checks.
If the gate remains unresolved, report blocked with evidence and the next
action. Load the matching example only when needed.
- Verify the direct doctor output reports
0 required fixes needed using
appium driver doctor xcuitest, or
npx --no-install appium driver doctor xcuitest in local mode.
- Run
node tools/appium/setup/scripts/smoke-appium-server.mjs --driver xcuitest --report auto;
add --appium-mode local only in local mode. Require
summary.requiredOk: true for server readiness, driver evidence, and
cleanup. The smoke reference documents target-specific options.
- For a real device, record passing shared-setup evidence before continuing
to
skills/xcuitest-real-device-config/SKILL.md.
XCUITest setup safety and approval constraints
- Require macOS.
- Ask before optional FFmpeg setup, privileged commands, Xcode license or
first-launch changes, trust changes, signing changes, or device installation.
- Leave real-device signing, provisioning, and WDA deployment to the
real-device Skill.
- Preserve the selected command mode and working Xcode and driver
installations.
Completion criteria
xcodebuild -version and xcode-select -p succeed.
- Xcode license and first-launch requirements are handled.
- Appium succeeds in the selected command mode and the installed list includes
xcuitest.
appium driver doctor xcuitest reports 0 required fixes needed; optional
warnings are non-blocking.
/status succeeds and logs list xcuitest.
- For a real-device request, the exact continuation to
skill.xcuitest-real-device-config is reported after shared setup passes.
Evidence boundary
Report Xcode tooling, Appium and XCUITest versions, helper and doctor summaries,
simulator or device target, /status, server driver evidence, cleanup, and
whether the real-device continuation applies.
Self-Improvement Prompt
Before the final response, report any missing, ambiguous, outdated, or
retry-causing XCUITest setup instruction with its asset path and proposed
wording. Leave unrelated assets unchanged.
1---2name: setup-xcuitest3description: Prepare and verify Appium XCUITest for iOS or tvOS on macOS by validating Node/Appium, Xcode, driver installation, doctor output, simulator or shared real-device prerequisites, and server smoke evidence. Use when the setup Skill selects XCUITest or appium-troubleshooting hands off an XCUITest prerequisite or doctor failure. For a real device, continue to xcuitest-real-device-config after this Skill passes. Do not use for real-device signing, provisioning, or WebDriverAgent deployment.4---56# XCUITest Setup Workflow78## XCUITest setup routing and handoffs910Prepare shared Appium XCUITest prerequisites for iOS or tvOS. For a simulator,11complete this Skill after doctor and smoke checks pass. For a real device,12complete these shared prerequisites first and then continue with13`skills/xcuitest-real-device-config/SKILL.md` for trust, Developer Mode,14signing, provisioning, WebDriverAgent deployment, and connectivity. Hand later15runtime failures to `skills/appium-troubleshooting/SKILL.md`.1617## Required inputs1819Confirm iOS or tvOS, simulator or real device, macOS host, global `appium` mode20or explicitly requested local `npx appium` mode, Xcode state, permissions, and21optional FFmpeg requests.2223## Workflow24251. Load the global command profile by default or the local profile only when26 explicitly requested.272. Load the macOS and XCUITest profiles, shared Appium setup basics, Xcode28 prerequisites, and XCUITest decision, driver-doctor, and smoke references.293. Run `node tools/appium/setup/scripts/check-xcuitest-env.mjs --format summary --report auto`; add30 `--appium-mode local` only for explicitly requested local mode. Require31 top-level `summary.requiredOk: true`.32 Apply required fixes in technical dependency order and rerun affected checks.33 If the gate remains unresolved, report `blocked` with evidence and the next34 action. Load the matching example only when needed.354. Verify the direct doctor output reports `0 required fixes needed` using36 `appium driver doctor xcuitest`, or37 `npx --no-install appium driver doctor xcuitest` in local mode.385. Run `node tools/appium/setup/scripts/smoke-appium-server.mjs --driver xcuitest --report auto`;39 add `--appium-mode local` only in local mode. Require40 `summary.requiredOk: true` for server readiness, driver evidence, and41 cleanup. The smoke reference documents target-specific options.426. For a real device, record passing shared-setup evidence before continuing43 to `skills/xcuitest-real-device-config/SKILL.md`.4445## XCUITest setup safety and approval constraints4647- Require macOS.48- Ask before optional FFmpeg setup, privileged commands, Xcode license or49 first-launch changes, trust changes, signing changes, or device installation.50- Leave real-device signing, provisioning, and WDA deployment to the51 real-device Skill.52- Preserve the selected command mode and working Xcode and driver53 installations.5455## Completion criteria5657- `xcodebuild -version` and `xcode-select -p` succeed.58- Xcode license and first-launch requirements are handled.59- Appium succeeds in the selected command mode and the installed list includes60 `xcuitest`.61- `appium driver doctor xcuitest` reports `0 required fixes needed`; optional62 warnings are non-blocking.63- `/status` succeeds and logs list `xcuitest`.64- For a real-device request, the exact continuation to65 `skill.xcuitest-real-device-config` is reported after shared setup passes.6667## Evidence boundary6869Report Xcode tooling, Appium and XCUITest versions, helper and doctor summaries,70simulator or device target, `/status`, server driver evidence, cleanup, and71whether the real-device continuation applies.7273## Self-Improvement Prompt7475Before the final response, report any missing, ambiguous, outdated, or76retry-causing XCUITest setup instruction with its asset path and proposed77wording. Leave unrelated assets unchanged.