> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mobster.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Test your app

> Check your app's first screen on a simulator, save the check and run it after every change.

## Before you begin

* A Mac with Apple silicon.
* Xcode with an iOS Simulator runtime. `xcodebuild -downloadPlatform iOS` installs the runtime.
* Your app's Xcode project.

On a simulator you need no iPhone, account or API key. Mobster checks the expectations you declare, and no model grades the outcome.

## Check your app

**1. Install Mobster**

```sh theme={"theme":"css-variables"}
curl -fsSL https://mobster.dev/install.sh | sh
export PATH="$HOME/.local/bin:$PATH"
```

The installer prints what it added. The second line makes `mobster` available in this terminal. If it still can't find the command, see [Install Mobster](https://docs.mobster.dev/quickstart/cli.md).

**2. Build your app for the simulator**

In your project's folder, replace `YourApp` with your scheme. Add `-workspace YourApp.xcworkspace` if your project has a workspace:

```sh theme={"theme":"css-variables"}
xcodebuild -scheme YourApp -configuration Debug \
  -destination 'generic/platform=iOS Simulator' \
  -derivedDataPath .mobster/build \
  CODE_SIGNING_ALLOWED=NO build
```

A simulator build needs no signing team. It ends with `** BUILD SUCCEEDED **`, and the app is in `.mobster/build/Build/Products/Debug-iphonesimulator`, named after its product.

**3. Check the first screen and save the check**

Replace `YourApp.app` with your built app's name. Replace `Today` with text its first screen always shows:

```sh theme={"theme":"css-variables"}
mobster verify \
  --app .mobster/build/Build/Products/Debug-iphonesimulator/YourApp.app \
  --text "Today" \
  --name "First screen shows Today" \
  --save first-screen
```

Mobster creates its own simulator, boots it headless and installs your app fresh, so the check sees what a new user sees. Allow about 2 minutes for the first run. Mobster waits up to 240 s for each of the boot and WebDriverAgent's start before it ends `couldnt_run`.

It prints `Saved .mobster/checks/first-screen.yaml`, then `✓ passed  First screen shows Today` and the path of the report. The saved check is plain YAML that you commit:

```yaml .mobster/checks/first-screen.yaml theme={"theme":"css-variables"}
# yaml-language-server: $schema=https://mobster.dev/schema/check.json
# A Mobster check. Run it with: mobster verify --check <this file>
version: 1
name: First screen shows Today
app:
  path: .mobster/build/Build/Products/Debug-iphonesimulator/YourApp.app
expect:
- text: Today
```

**4. Run every saved check**

After each change, build again, then run:

```sh theme={"theme":"css-variables"}
mobster test
```

It runs every check in `.mobster/checks` and prints one line per check, then the totals and the paths of an HTML report and a JUnit file.

## Read the verdict

A failed check's line starts with `✗ failed`. Under it, the expectation that didn't hold says what Mobster found instead. Text that isn't on screen lists the nearest text, such as `not on screen; closest: "Choose a plan"`. An element the expectation names by its id or label says how it differs, such as `plan_annual has value "$49.99 / year"`. JUnit's failure message says the same. The run's `report.html` shows each expectation beside the screen it was checked on.

The exit code is the verdict:

| Exit | Verdict | Means |
| - | - | - |
| 0 | `passed` | Every expectation held on one settled screen |
| 1 | `failed` | An expectation didn't hold, or the app wasn't in front |
| 2 | `needs_review` | The result is undecided, for example because the check has no expectations |
| 3 | `couldnt_run` | The check is invalid, or this Mac couldn't run it. The line says why and what to do |

With `--json`, the result is one object on stdout. [Checks](https://docs.mobster.dev/checks.md#the-result-json) lists every field.

## Next

> [card] [Add steps](https://docs.mobster.dev/test/steps.md)
>
> Tap through a flow with steps in plain English.

> [card] [Every pull request](https://docs.mobster.dev/ci.md)
>
> Run your checks in CI on each pull request.

> [card] [Coding agents](https://docs.mobster.dev/agents.md)
>
> Let Claude Code or Codex check its own changes.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.