Skip to content

Can an AI agent test my iOS app on a real iPhone?

Yes: an agent on your computer can walk through your app on a real iPhone, the way a person would. A small XIAO ESP32S3 board on the phone receives Screen Mirroring and acts as a USB or Bluetooth mouse and keyboard. Manina AI CLI (esp32agent) gives your agent the controls. It sees the real screen, so it works with any app on the phone: your build, a TestFlight build, or an App Store app. Nothing is installed in your app and iOS stays stock.

No board yet? Buy a XIAO ESP32S3, then flash it in your browser.

A simulator doesn’t show what a user sees on a device: real Screen Mirroring, real keyboards, system sheets and permission prompts. The board taps the actual screen, so the agent meets the same screens your users do.

  1. Get the board and attach its antenna (where to buy), then flash it from the installer in Chrome or Edge.
  2. Install the CLI: curl -fsSL https://manina.ai/install.sh | sh (Windows: irm https://manina.ai/install.ps1 | iex, or npm install -g esp32agent).
  3. Pair it: esp32agent pair, within three minutes of powering the board.
  4. On the iPhone, join the board’s hotspot, start Screen Mirroring → ESP32 Agent, and turn on AssistiveTouch. Check with esp32agent screenshot.
  5. Connect your agent:
Terminal window
claude mcp add esp32agent -- esp32agent mcp # Claude Code
codex mcp add esp32agent -- esp32agent mcp # Codex

Any client that runs a local stdio MCP server can use esp32agent mcp. Full steps: CLI & AI agents.

Install your build on the phone the way you normally do. The CLI can’t install or launch apps, so tell the agent how to reach it from the Home Screen, what to do, and what counts as passing:

Use esp32agent. From the Home Screen, search for “MyApp” and open it. Sign in with the test account in the note on screen, add one item to the cart and open the cart. Take a fresh screenshot after each action. Pass if the cart shows one item; otherwise stop and tell me which screen differed and why.

The agent works in a look → one action → look again loop. Every command returns JSON, and esp32agent screenshot saves a PNG, so results are easy to keep with your test notes.

  • esp32agent history show latest lists what was done in the last run.
  • Save a good run as an intent: esp32agent intent save --name checkout --prompt "…" --from-run <RUN>, with RUN from esp32agent history list. Move it to the iPhone app with esp32agent intent export; there, recorded moves replay without the AI while the screen matches what was recorded (intents).
  • esp32agent screencapture --format h264 | ffplay - shows live video while the agent works.
  • With the board on your Wi-Fi (esp32agent net join), screenshots are close to live and taps don’t queue behind video.
  • The phone stays unlocked and in portrait. iOS doesn’t mirror passcode entry, Apple Pay or DRM-protected video.
  • HOME is the only hardware button; there are no volume or power keys.
  • Typing is ASCII, one key per character; no clipboard access.
  • Over Bluetooth only, screenshots can be about a second behind.
  • It drives the UI. It doesn’t read your app’s view tree or logs; pull those with your usual tools. Board and CLI logs: Debugging & logs.

Screenshots go to the model your agent uses. Use test accounts, and only devices and accounts you own or may control (disclaimer). Working on Manina AI itself? The developer harness adds app and firmware installs over Wi-Fi.