Testing iOS and Android apps with an agent on cloud phones

A coding agent tests a mobile app by compiling a debug build on a remote mobile runner, installing the binary onto a cloud iOS or Android device, and interacting with the screen directly. In Capy, a cloud phone joins your thread with a screen and log access, while the agent compiles Expo, React Native, native iOS, or native Android projects on Revyl build runners and installs the output automatically. The agent taps, swipes, types, rotates the screen, inspects logcat or os_log output, and reports bugs in the thread with screenshots or opens a pull request with a fix. Cloud phones run on Capy Pro, Max, and Enterprise plans at $5.40 per hour for iPhone or iPad and $3.60 per hour for Android while awake, with sessions up to 60 minutes.
How a cloud phone test run works
Testing a native or cross-platform mobile app from a Linux cloud machine splits the job into two parts. Your coding thread edits code, runs backend services, and checks git history on its Linux VM. Because that Linux VM has no iOS or Android build toolchain, Capy archives your app directory, uploads it to a Revyl build runner to compile the binary, and installs that binary onto a cloud iOS or Android device attached to the thread.
A cloud phone has a screen and log output, with no shell and no filesystem. The agent reads the screen and sends taps, swipes, text input, hardware Home or Android Back presses, deep links, orientation changes, and light or dark appearance switches. You can attach a phone by asking in chat or clicking +, Phones, and New iPhone or New Android in the side pane. Because a new phone opens on the home screen, the agent can also test mobile web pages in Safari before any app build exists.
| Project type | Build steps Capy runs on the clean runner | Installed output |
|---|---|---|
| Expo / React Native iOS | bun install, bunx expo prebuild --platform ios, xcodebuild | .app bundle |
| Expo / React Native Android | bun install, bunx expo prebuild --platform android, ./gradlew assembleDebug | .apk |
| Native iOS | xcodebuild for your workspace and scheme | .app, .ipa, or zipped .app |
| Native Android | ./gradlew assembleDebug or another Gradle task | .apk or .aab |
| Prebuilt binary | Skips remote build and uploads directly from the thread's machine | .apk, .aab, .ipa, or zipped .app |
Getting builds, logs, and prompts right
Every remote build starts on a clean runner, so Capy writes build commands that install dependencies first. On iOS, the runner is macOS arm64 with Xcode 27.0, iOS Simulator runtimes 18.5, 26.2, 26.5, and 27.0, Node 22, and CocoaPods. Only Xcode's compilation cache carries between runs, and projects that need Rust install it in their build commands. Keep four operational limits in mind before your first run:
- Upload cap. The archived app directory has a 100 MB limit. Capy skips
node_modules,.git,.expo, and native build outputs automatically, and reads extra tar exclude patterns one per line from.capyignoreinside the app directory. - Build timeouts and slots. Builds time out after 1 hour by default, up to 4 hours, and queued builds cancel if they have not started after 2 hours. A single retry runs if Revyl infrastructure fails before any build step. Builds and phones share your organization's Revyl slots, and when all slots are busy a phone shows "Waiting for a phone" until Capy stops waiting after 2 hours.
- Platform log rules. Android streams
logcat. iOS captures only your app'sos_logandNSLoglines and does not capture stdout, stderr, or crash reports, so log fatal paths throughos_logif you want the agent to read them. - Session length and state. A phone session lasts at most 60 minutes including boot. It stays awake while the thread uses it or its tab stays visible, then sleeps after a few minutes idle. Sleeping keeps the installed build, though the next session starts with cleared app data. Reinstalling on an awake Android phone keeps app data, while iOS reports whether it kept it.
A concrete prompt tells the agent which directory to build, which phone model to attach, and which user path to verify:
Build the iOS app in apps/mobile, install it on an iPhone 16, and switch the device to dark mode.
Sign in with the staging test account, add an item to the cart, and apply promo code SAVE20.
Check that the submit button stays visible above the keyboard, read os_log for any errors, and report every bug with screenshots.
A worked example: broken checkout on iPhone 16
A team updates the cart screen in an Expo app under apps/mobile and wants to verify the promo code flow on iOS before cutting a release.
- An engineer runs the prompt above in a cloud thread. Capy archives
apps/mobile, starts the remote iOS build, and posts a Mobile build row with status, platform, version, and commands. While the runner compiles, the thread inspects the cart layout components on its Linux machine. - The
.appbundle finishes and installs on the attached iPhone 16. Capy opens the app, switches to Dark appearance, signs in, and taps the promo code field. - The screenshot shows the on-screen keyboard covering the apply button with no scroll room. When Capy dismisses the keyboard and taps apply,
os_logrecords a rejected lowercase coupon key. - Capy posts both screenshots and the
os_loglines in chat, updates the keyboard scroll inset and coupon normalization inapps/mobile, rebuilds to confirm the fixed screen on the iPhone 16, posts the confirmation screenshot in the thread, and opens a GitHub pull request.
Because that thread owns the pull request, failing CI checks and review comments wake it automatically until a teammate merges the fix.
Where Capy fits
Capy is a platform that orchestrates agent swarms, and cloud phones let an agent test mobile builds inside the same thread that writes the fix:
- Available on Capy Pro, Max, and Enterprise plans, with the organization setting Mobile builds and devices on by default (only admins change it) and Revyl linked on first use. If you already hold a Revyl account, a Revyl admin approves the link.
- Supports iPhone 18 Pro Max, iPhone 18 Pro, iPhone 17 Pro Max, iPhone Air, iPhone 16, iPhone 15, iPad Pro 13-inch (M4), and Pixel 7, or Revyl's default model when you do not name one.
- Opens a live view in the web app, desktop app, or a phone's browser so you can click, drag, type, rotate, shake, save screenshots, or inspect the Screenshots strip Capy captured. Tell Capy to wait if you want the phone alone.
- Reports bugs in chat with screenshots and logs, fixes them in a pull request, or runs on a schedule or GitHub event through automations that can post findings in Slack.
- Bills Capy credits only while a phone is awake, at $5.40 per hour for iPhone or iPad and $3.60 per hour for Android, tracked under Settings → Org → Usage with no charge while sleeping. For desktop Chrome and mobile Safari checks, see Getting coding agents to verify browser behavior.
And where it doesn't:
- Cloud phones have no shell or filesystem, so tools that drive devices over
adborsimctl, including Maestro, Detox, XCUITest, and Espresso, cannot run against them from Capy. Keep those deterministic regression suites in your CI. Capy can still write and update their test files in the repository. - Hardware-dependent checks covering cameras, Bluetooth, NFC, cellular networks, thermal behavior, or Android OEM skins outside Pixel 7 belong on a device farm that rents physical hardware.
- Sessions cap at 60 minutes and clear app data on restart, and iOS logs exclude crash reports, so long soak tests and native crash symbolication need another setup.
- Cloud machines run Linux without
/dev/kvm, so an Android emulator inside the cloud machine falls back to slow software emulation. To use your local iOS Simulator on a Mac, run the thread through the desktop app. Logins behind MFA or a CAPTCHA pause the thread until you complete that step yourself.
Follow-up questions
Which phone models can I test on?
On iOS, Capy offers iPhone 18 Pro Max, iPhone 18 Pro, iPhone 17 Pro Max, iPhone Air, iPhone 16, iPhone 15, and iPad Pro 13-inch (M4). On Android, it offers Pixel 7. If you omit a model name, Capy attaches Revyl's default, and it refuses models Revyl does not offer.
What happens when a cloud phone goes to sleep?
A sleeping phone stops billing Capy credits and keeps your installed app binary. When you or the agent wake it later, Capy starts a fresh session with that build installed, and app data from the earlier session is cleared.
Do I need to configure a Revyl account before starting?
No. On Capy Pro, Max, and Enterprise, Mobile builds and devices is on by default and Revyl connects on first use with no prior setup. Only people who already have a Revyl account need a Revyl admin to approve linking it.
Can Capy test my app automatically on every pull request?
Yes, through a GitHub-triggered automation that starts a fresh cloud thread when a pull request opens or receives a push. Have the prompt build the app, walk through the critical screens on a cloud phone, and post screenshots or a Slack alert if a flow breaks.




