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 localonly for explicitly requested local mode. Require top-levelsummary.requiredOk: true. Apply required fixes in technical dependency order and rerun affected checks. If the gate remains unresolved, reportblockedwith evidence and the next action. Load the matching example only when needed. - Verify the direct doctor output reports
0 required fixes neededusingappium driver doctor mac2, ornpx --no-install appium driver doctor mac2in local mode. - Run
node tools/appium/setup/scripts/smoke-appium-server.mjs --driver mac2 --report auto; add--appium-mode localonly in local mode. Requiresummary.requiredOk: truefor 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 -versionandxcode-select -psucceed.- Xcode license and first-launch requirements are handled.
- Appium succeeds in the selected command mode and the installed list includes
mac2. appium driver doctor mac2reports0 required fixes needed.- Required privacy permissions are user-approved when session startup needs them.
/statussucceeds and logs listmac2.
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.


