Run your Maestro flows on a real iPhone
Maestro doesn’t officially run on a physical iPhone. Mobster does, and mobster test import maestro converts your flows into checks that run on simulators and, with --device, on the iPhone on your desk. This guide shows one flow before and after, what the import refuses, and what changes when the check runs on a phone.
What Maestro supports today
- Maestro’s iOS documentation describes running on iOS Simulators, and its cloud as a fleet of iOS Simulators. It doesn’t mention physical iPhones.
- Issue #686, “Support real iOS devices”, is still open. It was opened on 26 January 2023. In April 2026 a contributor wrote that staff intend to work on it soon. No date is given.
- PR #2856 added physical iOS support. A contributor closed it without merging on 15 June 2026, as a partial implementation that wasn’t advancing.
- DeviceLab publishes maestro-ios-device, an Apache 2.0 tool that patches an installed Maestro to run on a phone. It lists Maestro 2.0.9, 2.0.10 and 2.1.0, and builds an XCTest driver on the device. Its README points users on to DeviceLab’s maestro-runner.
On Android, Maestro’s docs say it connects to emulators and to physical devices with USB debugging on. The gap is iOS only.
If you want to stay on Maestro, the patch is the way to try, and you pin the versions it lists. If you want your flows on an iPhone without patching a test runner, convert them.
Convert the flows
Run the import from your project folder.
mobster test import maestro .maestroThis flow is .maestro/ in a sample app:
appId: com.example.yourappname: Checkout with a promo codeenv: PROMO: SPRING10---- launchApp- tapOn: Cart- tapOn: id: promo_field- inputText: ${PROMO}- runScript: scripts/ promo.js- back- scroll- assertVisible: "Total: .*"- assertNotVisible: Cart is emptyYou see this output from the import in Mobster 0.4.0:
Imported 0 of 1 Maestro flow (0 checks) into .mobster/ checkscheckout.yaml refused: it has commands Mobster can't run, so no check was written command 5 (runScript): runs JavaScript, which Mobster doesn't run instead: move the logic into the app or the launch environment, or write that part as a Mobster check by hand note: command 6 (back): iOS has no back key, so the step taps the Back button on screen or swipes from the left edge1 flow refused: Mobster won't write a check that covers less than the flow does. Fix the commands named above, or add --skip-unsupported to drop the ones that aren't assertions and list each.Add --skip-unsupported to drop the runScript command and write the check:
mobster test import maestro .maestro --skip-unsupportedImported 1 of 1 Maestro flow (1 check) into .mobster/ checkscheckout.yaml wrote .mobster/ checks/ checkout.yaml: 5 steps, 2 expectations dropped command 5 (runScript): runs JavaScript, which Mobster doesn't run instead: move the logic into the app or the launch environment, or write that part as a Mobster check by hand note: command 6 (back): iOS has no back key, so the step taps the Back button on screen or swipes from the left edgeRun them with: mobster test .mobster/ checksThe check it wrote:
# Imported from the Maestro flow checkout.yaml.# Run it with: mobster test <this file>version: 1name: Checkout with a promo codeapp: bundle: com.example.yourappreset: nonetags:- maestrosteps:- Tap "Cart"- Tap the element with accessibility id "promo_field"- Type "SPRING10" into the focused text field- Go back one screen with the Back button on screen, or by swiping from the left edge- Scroll downexpect:- visible: label: '/ ^(?:Total: .*)$/ i' name: 'Total: .* is visible'- absent: label: /^Cart is empty$/ i name: Cart is empty is not visibleThe commands keep their order. ${PROMO} is filled from the flow’s env. Assertions move to expect, because Mobster judges them on the accessibility tree after the steps end, never with a model. Text matches as Maestro matches it: the whole label, ignoring case.
The import never runs a flow and never sends one to a model as an instruction. Import twice and you get the same files. A check you edited is kept unless you pass --force. Moving from Maestro lists every command it converts.
What the import refuses
You cannot import a flow with a command Mobster cannot run, such as runScript, unless you pass --skip-unsupported. You cannot import a flow with an assertion Mobster cannot judge, even with that flag. Add a second flow, price-check.yaml, with this line:
- assertTrue: ${output.total > 0}and the import refuses that flow:
price-check.yaml refused: it has commands Mobster can't run, so no check was written command 3 (assertTrue): judges a JavaScript condition, which Mobster doesn't run instead: write the condition as assertVisible or assertNotVisible on what the screen showsThe command exits 1 when it refuses a flow. Mobster refuses unsupported assertions. --skip-unsupported drops the commands that aren’t assertions and lists each one. It never drops an assertion.
Other rows follow the same rule. assertWithAI is refused because a model never decides a Mobster verdict. repeat and retry have no equivalent in a check; write the steps out, or use mobster test --retries N to retry a whole check. You cannot import setLocation, setPermissions or setAirplaneMode, as with runScript. Follow the docs and set them before the run with xcrun simctl.
An assertion in the middle of a flow splits it. Mobster judges every expectation once, after the last step, so a flow that asserts between actions becomes login-part-1 and login-part-2. Each part replays the steps from the start, and no assertion is dropped.
Run them on a simulator
mobster test .mobster/ checksThe first run uses Smart, which carries out the English steps with your model and records the path. After a pass, later runs can replay the recorded path without a model when the saved steps still match the screen. The replay post covers heals and the circuit breaker.
Read the first report before you commit the checks. The import can’t tell whether a Maestro pattern matches the same label on iOS, and a flow written for Android may name text your iOS app doesn’t show. The Expo starter’s documentation link has the label Expo documentation, arrow.up.right.square, so assertVisible: "Expo documentation" fails and assertVisible: "Expo documentation.*" passes.
Run them on your iPhone
mobster test .mobster/ checks --device "Sam's iPhone"--device takes a name from mobster devices. The testing docs list what changes on a phone:
- The check drives your own app, and only a build you put there from Xcode, an
.ipaor TestFlight. An App Store app is refused. - The app’s data is never cleared. A check with
reset: dataruns withreset: none, and the report says so. - Smart steps never send, buy, post or delete on a phone, and they stay in the app. If a step opens another app, the check stops as couldn’t run.
- The phone runs one check at a time, beside any simulators.
- A phone is named on the command line only. A check file can’t name one.
To check the TestFlight build your testers get, name its bundle ID:
mobster test .mobster/ checks --device "Sam's iPhone" --testflight com.example.yourappKeep the phone unlocked and connected with its runner started. The pillar guide walks through that setup and the report. Replaying one two-step check on an iPhone took a 10.3 s median against 17.7 s for a fresh run, with 0 model calls and $0 AI cost. We measured it on an iPhone 15 Pro running iOS 26.0.1 over USB.
Speed against Maestro
We ran the same check as a Mobster check and as a Maestro 2.4.0 flow on an iPhone 17 Pro simulator, iOS 26.4. This comparison uses Maestro’s supported simulator path.
| Measure | Mobster | Maestro 2.4.0 |
|---|---|---|
| One check | 13.3 s median | 23.6 s |
| Writing the check, same coding agent and spec | 55.5 s median | 93.6 s |
The single-check times are medians over 6 interleaved pairs, with Maestro 2.4.0. The comparison is not pre-registered; each Maestro invocation pays its JVM start. The results show a pass for every run. The timed Mobster check runs are replays with zero model calls. Authoring times are medians of 3 runs for each tool. The measured time for Maestro is 1.8 times the measured time for Mobster for one run.
Where Maestro is the better pick
Pick Maestro if you test an Android app. Its flow syntax is compact and widely known, it has Maestro Studio, and Maestro Cloud runs flows in parallel on hosted iOS Simulators. If your flows lean on runScript, repeat or assertWithAI, they run in Maestro and need rewriting here. The Maestro comparison and Maestro, XCUITest and Mobster side by side cover the rest.
Get Mobster for Mac, import a folder of flows, and run the first one on your iPhone. The checks reference describes the file you wrote.
Questions
Does Maestro run on a physical iPhone?
Not officially. Maestro's iOS docs describe iOS Simulators, and the request for real devices has been open since January 2023. Issue
How do I run a Maestro flow on an iPhone with Mobster?
Run mobster test import maestro .maestro to write checks to .mobster/checks, then mobster test .mobster/checks --device "Sam's iPhone". The checks drive an app you installed from Xcode, an .ipa or TestFlight.
Does the import run my flows or send them to a model?
No. It reads the YAML as data and writes check files. You cannot import a flow with a command Mobster cannot run unless you pass --skip-unsupported. You cannot import a flow with an assertion Mobster cannot judge, even with that flag.
Will my Maestro assertions behave the same way?
Text patterns match the same way, the whole label and ignoring case, but against the accessibility label iOS gives the element. Run the check once and read the first report before you commit it.
Sources
- Maestro on GitHub: issue #686, Support real iOS devices
- Maestro on GitHub: PR #2856, iOS physical device support (closed, not merged)
- Maestro docs: iOS (Simulators)
- Maestro docs: Android (emulators and physical devices)
- DeviceLab on GitHub: maestro-ios-device, an Apache 2.0 patch for Maestro 2.0.9 to 2.1.0
- Mobster docs: Moving from Maestro
- Mobster docs: run every check with mobster test



