Mac2 Setup Workflow
Routing
Prepare only the Appium Mac2 route on macOS. Use driver-specific official
guidance for an existing runtime failure after setup passes.
Required inputs
Confirm macOS as the host and target, global appium mode or explicitly
requested local npx appium mode, Xcode tooling state, permissions, and any
required privacy authorization state.
Workflow
- Load the global command profile by default or the local profile only when
explicitly requested.
- Load the macOS and Mac2 profiles, shared Appium setup basics, Xcode
command-line-tools Context, and Mac2 decision, doctor, and smoke references.
- Run
node tools/appium/setup/scripts/check-mac2-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 mac2, or
npx --no-install appium driver doctor mac2 in local mode.
- Run
node tools/appium/setup/scripts/smoke-appium-server.mjs --driver mac2 --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.
Mac2 setup safety and approval constraints
- Require macOS.
- Ask before privileged commands, Xcode license or first-launch changes, or
privacy-setting changes.
- 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
mac2.
appium driver doctor mac2 reports 0 required fixes needed.
- Required privacy permissions are user-approved when session startup needs
them.
/status succeeds and logs list mac2.
Evidence boundary
Report Xcode tooling, Appium and driver versions, helper and doctor summaries,
privacy authorization blockers, /status, server driver evidence, and cleanup.
Self-Improvement Prompt
Before the final response, report any missing, ambiguous, outdated, or
retry-causing Mac2 setup instruction with its asset path and proposed wording.
Leave unrelated assets unchanged.
1---2name: setup-mac23description: Prepare and verify Appium Mac2 for native macOS automation by validating Node/Appium, macOS and Xcode tooling, driver installation, doctor output, privacy authorization boundaries, and server smoke evidence. Use after the setup Skill selects Mac2. Do not use for an existing Mac2 runtime failure after prerequisites pass.4---56# Mac2 Setup Workflow78## Routing910Prepare only the Appium Mac2 route on macOS. Use driver-specific official11guidance for an existing runtime failure after setup passes.1213## Required inputs1415Confirm macOS as the host and target, global `appium` mode or explicitly16requested local `npx appium` mode, Xcode tooling state, permissions, and any17required privacy authorization state.1819## Workflow20211. Load the global command profile by default or the local profile only when22 explicitly requested.232. Load the macOS and Mac2 profiles, shared Appium setup basics, Xcode24 command-line-tools Context, and Mac2 decision, doctor, and smoke references.253. Run `node tools/appium/setup/scripts/check-mac2-env.mjs --format summary --report auto`; add26 `--appium-mode local` only for explicitly requested local mode. Require27 top-level `summary.requiredOk: true`.28 Apply required fixes in technical dependency order and rerun affected checks.29 If the gate remains unresolved, report `blocked` with evidence and the next30 action. Load the matching example only when needed.314. Verify the direct doctor output reports `0 required fixes needed` using32 `appium driver doctor mac2`, or33 `npx --no-install appium driver doctor mac2` in local mode.345. Run `node tools/appium/setup/scripts/smoke-appium-server.mjs --driver mac2 --report auto`;35 add `--appium-mode local` only in local mode. Require36 `summary.requiredOk: true` for server readiness, driver evidence, and37 cleanup. The smoke reference documents target-specific options.3839## Mac2 setup safety and approval constraints4041- Require macOS.42- Ask before privileged commands, Xcode license or first-launch changes, or43 privacy-setting changes.44- Preserve the selected command mode and working Xcode and driver45 installations.4647## Completion criteria4849- `xcodebuild -version` and `xcode-select -p` succeed.50- Xcode license and first-launch requirements are handled.51- Appium succeeds in the selected command mode and the installed list includes52 `mac2`.53- `appium driver doctor mac2` reports `0 required fixes needed`.54- Required privacy permissions are user-approved when session startup needs55 them.56- `/status` succeeds and logs list `mac2`.5758## Evidence boundary5960Report Xcode tooling, Appium and driver versions, helper and doctor summaries,61privacy authorization blockers, `/status`, server driver evidence, and cleanup.6263## Self-Improvement Prompt6465Before the final response, report any missing, ambiguous, outdated, or66retry-causing Mac2 setup instruction with its asset path and proposed wording.67Leave unrelated assets unchanged.