Checking an AI-written iOS app from Linux or WSL: test log and Simulator screen in one command
If you build an iPhone app with Claude Code, Codex or Cursor on a Linux box or in WSL, the agent can write Swift all day. What it cannot do is run xcodebuild, so it never sees a compile error, a failing test, or what the
If you build an iPhone app with Claude Code, Codex or Cursor on a Linux box or in WSL, the agent can write Swift all day. What it cannot do is run xcodebuild, so it never sees a compile error, a failing test, or what the screen actually looks like. You end up being the one who copies files to a friend's Mac, or who pushes and waits for CI to tell you the agent guessed wrong.
Here is the loop I use instead, with the real output of one run.
One command, real output
From the project folder, the agent (or you) runs:
$ box test --screenshot
box: checked 3 files
box: sync: 3 files, 0 new (0 bytes), snapshot snap_bavXbOuveVA3Ph3J
box: job bj_yuYzWnu-XY0_-m7p (test, ios, $0.05/min) submitted
box: status: queued
box: status: running
... the Xcode build and test log streams here ...
box: status: succeeded
box: tests 1 passed, 0 failed
box: saved ./.box/out/bj_yuYzWnu-XY0_-m7p/
box: bj_yuYzWnu-XY0_-m7p succeeded, 180s billed, $0.15
The build and test log stream back into the same terminal, so the agent reads the compiler error the same way it would read a local one and fixes it. The screenshot lands in ./.box/out/<job>/screen.png. This is what one of those runs returned for a small habit tracker an agent wrote:
That picture is the part that changed how I work. "The tests pass" and "the screen looks right" are different claims, and an agent that can only do the first one will happily ship a ring that never fills.
What the agent gets
-
box buildandbox teston a real Mac, started from Linux (x86_64 or arm64), WSL, or macOS on Apple silicon. Native Windows is not supported, so on Windows use WSL. -
box screenshotfor the current Simulator screen, and a live view of the Simulator you can watch and tap in yourself while the agent works. -
box debugto launch the app under LLDB, stop at a breakpoint and print variables. - It is also an MCP server and a skill, so in Claude Code the agent calls it directly.
Setup is one line pasted into your agent. It installs the CLI and gives you a link to sign in with GitHub.
The other ways, fairly
- GitHub Actions macOS runner. Works with any repo and you already have it. Each check is a push and a wait, and the agent usually only sees the log after the run, not a screen. GitHub lists a standard macOS runner at $0.062 per minute.
- Expo EAS Build. The natural choice for Expo and React Native, it handles signing and store builds well. It builds, it does not give your agent a running Simulator to look at, and builds can sit in a queue.
- xtool. Open source, builds and installs SwiftPM apps from Linux, no Mac in the loop at all. Great if your app fits its model; you still have no Simulator screen to check.
- A friend's Mac now and then. Fine for a release, slow for the edit, build, look loop an agent runs dozens of times a day.
box is for that inner loop: the agent changes code, runs one command, reads the log, looks at the screen.
Price, plainly
$0.05 per started minute of build and test time. Upload, queue and Mac start are not billed, and a job that fails because of us costs nothing. Your first GitHub sign-in adds $10 of credit, about 200 minutes, so you can try it on your real app before paying anything.
Start here: https://xenoci.com/setup?ref=devto-5153010
If you try it, I would like to hear where the agent still got stuck. That is the list I am working through.
Apple, Mac and Xcode are trademarks of Apple Inc.
Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.