ai newsDi., 1. Dez.

KI-generierte iOS-App unter Linux prüfen: Testlog und Simulator in einem Befehl

Wer mit Claude Code, Codex oder Cursor auf Linux oder WSL eine iPhone-App baut, bekommt keine Rückmeldung vom Compiler, weil xcodebuild dort nicht läuft. Der Agent sieht weder Compilerfehler noch fehlgeschlagene Tests oder den Bildschirm. Eine Lösung kombiniert Testlog und Simulator-Screenshot in einem einzigen Befehl.

dev.toSonntag 04:15 · 29.11.DE2 Min. Lesezeit
Bild: dev.to

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.

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 Enter fullscreen mode Exit fullscreen mode 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.

Setup is one line pasted into your agent. It installs the CLI and gives you a link to sign in with GitHub.

box is for that inner loop: the agent changes code, runs one command, reads the log, looks at the screen.

$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.

Originaltitel: Checking an AI-written iOS app from Linux or WSL: test log and Simulator screen in one commandQuelle: dev.to (dev.to). Original öffnen