---
title: "Vibe testing an iOS app with an agent | Mobster"
description: "Vibe testing an iOS app means telling an agent the flow in plain English. Fix what must be true first, let it drive, then save the run as a check that replays."
canonical: "https://mobster.dev/blog/vibe-testing-ios-app-with-an-agent"
last-updated: "2026-11-12"
---

Vibe testing an iOS app means telling an agent the flow in plain English. Fix what must be true first, let it drive, then save the run as a check that replays.

# Vibe testing an iOS app: let an agent drive, keep what passed

29 October 2026

Vibe testing an iOS app is typing what you want to be true and letting an agent find out. “Mark a task done, then the count should read 2 tasks left.” It beats writing XCUITest for a screen you changed ten minutes ago. It fails when the agent also decides whether it passed, because a model that wants to be done will say it is. Mobster splits the two jobs: the agent drives, and the screen’s accessibility tree judges, against expectations written down before the first tap.

## Say what must be true before you say how

Start with the end state. You ask your coding agent to send these steps and expectations to the MCP server in Mobster for a made-up to-do app called YourApp:

```
{"tool": "verify_start", "arguments": {  "app_path": "/abs/path/YourApp/.mobster/build/Build/Products/Debug-iphonesimulator/YourApp.app",  "launch_env": {"SEED_TASKS": "3"},  "open_url": "yourapp://tasks",  "steps": ["Tap the first task to mark it done."],  "expect": [{"visible": {"id": "task_1", "selected": true}}, {"value": {"id": "done_count"}, "equals": 1},             {"value": {"id": "tasks_left"}, "equals": 2}]}}
```

`steps` are loose, plain English, and the agent may take any path through them. `expect` is strict and is fixed at this call. You can’t loosen it after you have seen the screen, and neither can the agent. That one rule is what makes a vibe test worth reading.

Write each expectation so it only holds after the steps. If everything already holds right after launch, the run ends `needs_review` with the class `held_before_flow`, because it doesn’t show the flow works. A test that can’t fail isn’t a test.

## Let it drive

The agent reads the screen as an outline of labelled controls, the ones VoiceOver reads, and acts by name:

```
Screen  com.example.yourapp  402×874 pt  keyboard: none  alert: nonee3  button  "Water the plants"  value="To do"  id=task_1e4  button  "Call the bank"     value="To do"  id=task_2e5  button  "Book the dentist"  value="To do"  id=task_3e6  button  "Add a task"                       id=add_taske7  button  "Clear done"                       id=clear_done  disabled
```

It ticks “Water the plants”, Clear done stops being `disabled`, and it carries on. A real key-less session on a sample app’s onboarding, from `scripts/mcp_smoke.py` on 28 September 2026, with the simulator already up. Each line is a tool call, its time, and the first line it returned (trimmed to the main calls):

```
verify_start   3.94 s  Run 20260928-151841-816e is ready. Drive the app with the refs below, then call verify_finish.tap            1.86 s  Tapped “Continue”; the screen changed.tap            1.89 s  Tapped “Turn on reminders”; the screen didn't change.alert          2.13 s  Dismissed the alert "“YourApp” Would Like to Send You Notifications …".tap            4.13 s  Tapped “Get started”; the screen changed.verify_finish  3.07 s  Verdict: passed  Complete onboarding. Don't allow notifications.  (24.1 s)
```

The whole check took 24.1 s. Across four such sessions that day the median action took 2.1 to 2.2 s from the client’s side. That is fast enough to run after every change to a view. [Give Claude Code a real iPhone](https://mobster.dev/blog/claude-code-real-iphone) has the setup.

Two ways to drive, and you choose per run:

| Loop | Who taps | Cost |
|---|---|---|
| Key-less | Your coding agent, on its own model | Nothing from Mobster, no key |
| Smart | The built-in agent, on your Anthropic or OpenAI key | $0.25 a run by default, `max_usd` up to $1.00 |

Smart sends each screen’s image and accessibility text to the provider whose key it uses. In the key-less loop, your coding agent receives the screen and sends it to its own model provider. A launch-only check calls no model.

## Read the verdict, not the vibe

When the run ends, `verify_finish` checks the declared assertions and returns one of four verdicts: `passed`, `failed`, `needs_review` or `couldnt_run`. The failure is specific. A ticked task that doesn’t lower the count prints this:

```
✗ failed  Marking a task done lowers the count  (31.4 s)  ✓ visible id=task_1 selected=true  ✓ value id=done_count == 1  ✗ value id=tasks_left == 2: was "3 tasks left"
```

You get the frame with every asserted element outlined, green where it held and red where it failed, and a `repro` line that runs the same check again. No sentence from the model sits between you and the screen, so there is no “the list looks right” to argue with. [How to test an iOS app with an AI agent](https://mobster.dev/blog/ai-e2e-tests-ios-assertions) walks through the assertion kinds.

## Keep what passed

A vibe test that found nothing wrong is still worth keeping. Two ways to save it:

```
mobster verify "Tap the first task to mark it done." \  --app .mobster/build/Build/Products/Debug-iphonesimulator/YourApp.app --open-url yourapp://tasks \  --visible id=task_1,selected=true --expect '{"value": {"id": "done_count"}, "equals": 1}' \  --expect '{"value": {"id": "tasks_left"}, "equals": 2}' \  --save task-done
```

Or your agent calls the `save_check` tool with the run’s id and a name. Either writes `.mobster/checks/task-done.yaml`, plain YAML you can edit and commit:

```
name: Marking a task done lowers the countsteps:  - Tap the first task to mark it done.expect:  - visible: { id: task_1, selected: true }  - value: { id: done_count }    equals: 1  - value: { id: tasks_left }    equals: 2
```

(Trimmed. [The check file](https://docs.mobster.dev/checks) lists every key.) From here `mobster test` runs it with every other check. The first runs use Smart. After the check has passed once, Mobster replays the exact steps with no model and no key, and heals a changed step as a diff you review. [Replay a passed check with zero model calls](https://mobster.dev/blog/replay-passed-check-zero-model-calls) explains the mechanics. The exit code is the verdict (0 passed, 1 failed, 2 needs review, 3 couldn’t run), so it drops into a script or [CI](https://docs.mobster.dev/ci) unchanged.

## What a vibe test won’t tell you

It tells you what your expectations cover. A screen with a wrong colour passes if you asserted only its text. The tree has no pixels, so layout and artwork need your eyes, and the frames in the report are there for that. An agent can also reach a state by a path no user would take, which is why the saved check’s steps, not its mood, are what you rerun.

On a real iPhone a check drives only your own development build, or a TestFlight build you name. Smart steps refuse every send, purchase, post or delete there, and the app’s data is never cleared. Start on a simulator for checks that need a fresh install.

## Try it

[Get Mobster for Mac](https://mobster.dev/download), run `mobster sim doctor --fix` once, and build your app with `CODE_SIGNING_ALLOWED=NO`. The docs’ quickstart, Test your app, runs a first check. The loop and the verdict rules are in [the MCP docs](https://docs.mobster.dev/mcp-server) and [the replay docs](https://docs.mobster.dev/testing). The open-source Mobster engine on [GitHub](https://github.com/RadishSoftware/mobster) holds the agent loop and its safety checks. The verify tools ship in Mobster for Mac.

## Questions

- ### What is vibe testing an iOS app?
  You describe a flow in plain English, such as mark a task done and check the count, and an agent taps through your app to try it. With Mobster the agent drives a simulator. Mobster checks the assertions declared before the run.
- ### Can the agent grade its own test?
  Not in Mobster. verify_start takes the expectations before the agent touches the app, and verify_finish checks them against the accessibility tree. What the model says about its own run is never an input to the verdict.
- ### Does a vibe test need an API key?
  Not when your coding agent drives. In the key-less loop, it uses its own model and Mobster calls none. In the Smart loop, the built-in agent runs your steps on your Anthropic or OpenAI key. Spending is capped at \$0.25 a run by default.
- ### How do I turn a vibe test into a regression test?
  Call save_check with the run's id, or add --save NAME to mobster verify. It writes a YAML file to .mobster/checks. mobster test then runs it, and after it has passed once it replays with no model.

## Sources

- [Mobster docs: quickstart, test your app](https://docs.mobster.dev/quickstart/test)
- [Mobster docs: add steps, save checks and script them](https://docs.mobster.dev/test/steps)
- [Mobster docs: checks, assertions and verdicts](https://docs.mobster.dev/checks)
- [Mobster docs: MCP server](https://docs.mobster.dev/mcp-server)
- [Mobster docs: run every check (replay and heals)](https://docs.mobster.dev/testing)

## Try it on your own iPhone

Download Mobster for Mac

## More from the blog

### [How to test an iOS app with an AI agent](https://mobster.dev/blog/ai-e2e-tests-ios-assertions)

8 Oct 2026

### [Give Claude Code a real iPhone](https://mobster.dev/blog/claude-code-real-iphone)

9 Oct 2026

### [How do I test push notifications on a real iPhone automatically?](https://mobster.dev/blog/test-push-notifications-real-iphone-automatically)

6 Nov 2026
