# design-check - Phase 1 build & launch (mock)

1. **Debug build** in the worktree (mock activation requires the Debug configuration):
   - iOS: `mcp__multi-agent-toolkit__ios_xcodebuild({ workspace|project, scheme, configuration: "Debug", action: "build", destination: "generic/platform=iOS Simulator" })`. Drill failures via `ios_xcresult`.
   - Android: `./gradlew :<module>:assembleDebug` (or `installDebug`) via Bash.
2. **Boot device + install**: iOS `ios_list_devices` → `ios_boot_device` → install the built `.app` (`xcrun simctl install`). Android: ensure an emulator is running, `adb install -r <apk>`.
3. **Deterministic state**: iOS `ios_status_bar({ preset: "clean" })` (09:41 / full battery); set a fixed appearance + locale so captures are stable across runs.
4. **Launch in mock mode** using the activation from Phase 0:
   ```
   mcp__multi-agent-toolkit__design_mock_launch({ platform, bundle_id|package_name,
     launch_arg: state.designCheck.mock.activation.launchArg,      // iOS, e.g. "-debugMockMode YES"
     intent_extra: state.designCheck.mock.activation.intentExtra }) // Android
   ```
   For `debug-only` there is no switch - just launch the Debug build. The build is installed once and stays installed: Phase 3 relaunches it per target rather than rebuilding.
