DEV Community

xenoci.com
xenoci.com

Posted on Fully Autonomous

Claude Code on Windows can build your iOS app now: the loop, step by step

If you write a SwiftUI, Flutter or Expo app on a Windows PC with Claude Code, Codex or Cursor, the agent usually gets stuck in the same place. It writes the screen, then it can't run xcodebuild, can't open a Simulator, and can't see what it just broke. You end up being the one who carries errors between machines.

Disclosure first: I'm Hyeonsu Ju and I work on XenoCI Box, the tool this post uses. Here is the loop it gives the agent on Windows, with the commands, so you can judge whether it fits your project.

1. Install from PowerShell

The quickest route is to paste one line into the agent and let it follow the runbook:

Set up XenoCI Box with https://docs.xenoci.com/setup?ref=devto-win
Enter fullscreen mode Exit fullscreen mode

If you'd rather do it by hand in PowerShell:

npm i -g --prefix "$HOME\.local" @xenoci/box
$env:PATH = "$HOME\.local;$env:PATH"
box --version
Enter fullscreen mode Exit fullscreen mode

One Windows detail that trips agents: npm puts box.cmd in .local itself, not in .local\bin, so the PATH line points there.

2. Sign in without leaving the terminal

box login prints a link with a code. You press Continue with GitHub once in the browser, and the terminal carries on. The agent never asks you for a token in the chat. box setup then adds the box skill and MCP tools for Claude Code and Codex, so the agent knows when to call it.

3. Build: errors come back as your own file:line

box build
Enter fullscreen mode Exit fullscreen mode

The project is uploaded (.gitignore respected, .env never sent) and built in Xcode on a real Mac. A failed build prints each error as file:line:col with your local Windows path and the lines around it, so Claude Code opens the right file and fixes it without you pasting a log. The full log stays in .box/out/<job>/ if you want it.

4. Test: one line per failure, and why.txt

box test
Enter fullscreen mode Exit fullscreen mode

Tests run on a fresh simulator. You get a count and one line per failing test with its assertion message. When something fails, box why names the failing file and line, the cause and a fix direction. Agents do better reading that one line first than scrolling the whole xcodebuild output.

5. See the screen and drive the app

This is the part I'd look at first if you're skeptical. A green build doesn't tell the agent the first screen is blank or a sheet never opens.

box run --detach          # builds, installs, keeps the app open on a simulator
box ui describe           # lists the elements: role, label, value, ref
box ui tap --id saveButton
box ui type "Alex"
box ui screen after.png   # a picture the agent can read
Enter fullscreen mode Exit fullscreen mode

box run keeps the app open, so the agent can walk a multi-step flow (open settings, change a field, save, check the next screen) instead of judging one still picture. box stop closes the session.

6. Android too

The same commands take --platform android and run on an emulator, which matters if your Flutter or Expo app ships to both stores.

What it doesn't do

  • Simulators only, no physical iPhones. box build --device-build makes an unsigned Release build you sign yourself.
  • You can't pick the Xcode or iOS version.
  • No team or organization accounts yet; you sign in with your personal GitHub account.

Cost

It's prepaid: iOS is $0.05 per started minute, Android $0.02. Your first GitHub sign-in adds a $10 credit, once per account, good for a year, so you can try it on your own project before deciding anything.

If you try it from Windows and something in the PowerShell path breaks, I'd like to hear exactly where. The setup page your agent reads is https://docs.xenoci.com/setup?ref=devto-win

Top comments (0)