{"slug": "letting-a-coding-agent-on-linux-build-test-and-debug-an-ios-app", "title": "Letting a coding agent on Linux build, test and debug an iOS app", "summary": "A developer built box, a paid tool that gives coding agents like Claude Code and Codex remote access to a Mac so they can compile, test, screenshot and debug iOS apps from a Linux machine. Each build returns short structured output—a compile-error count with the offending file and line, or a test pass/fail count with saved result files—and only changed files are synced, cutting a 70-file SwiftUI app's rebuild after a one-line edit to 10.8s with 3 files compiled instead of 70. The tool also exposes simulator screenshots, UI taps and LLDB debugging as text and as an MCP tool, billed at $0.05 per Mac minute.", "body_md": "I run Claude Code and Codex on a Linux machine. For web and backend work that's fine. For iOS it breaks down fast: there's no Xcode on Linux, no simulator, so the agent writes Swift it can never compile, and I end up being the compiler, copying errors back and forth.\n\nI built a small tool for that, called box. This post is about what I learned making a remote Mac useful to an *agent*, not to a human. (Disclosure: box is my product, it's paid, and the link is at the end.)\n\nA human can scroll through a 2,000-line `xcodebuild` log and find the one red line. An agent burns context doing that and often fixes the wrong thing. What worked better was making each build return something short and structured:\n\n``` bash\n$ box build\nbox: 1 compile error(s):\nApp/Module0.swift:2:19: cannot convert value of type 'String' to specified type 'Int'\n      1 | import Foundation\n>     2 | let broken: Int = \"x\"\n      3 | struct Module0 {\nbox: bj_5WO8cgwGaPXkXTit failed, 60s billed\n```\n\nTests come back the same way, as a count plus files the agent can open:\n\n``` bash\n$ box test\nbox: tests 3 passed, 0 failed\nbox: saved ./.box/out/bj_f-P-JW-6hWjR-OnA/test-summary.json\nbox: saved ./.box/out/bj_f-P-JW-6hWjR-OnA/test.xcresult.zip\nbox: bj_f-P-JW-6hWjR-OnA succeeded, 180s billed\n```\n\nThree things matter here:\n\nEach build sends only the files that changed (`sync: 65 files, 1 new (3240 bytes)` after a one-line edit). The workspace and build cache stay on the Mac between jobs, so there's no cache step to write. On a 70-file SwiftUI app, the first build took 15.9s and the build after a one-line change took 10.8s, with compiling on the Mac going from 7s to 2s and 70 Swift files compiled down to 3.\n\nCompiling isn't the whole job. The agent also needs to look at what it built:\n\n`box screenshot` returns a PNG; `--dark --locale ar` gives dark mode or another language, and `--record` saves the run as `screen.mp4`.` box run && box ui tap --label Add` keeps the app open and taps, types, swipes or grabs the screen.`box run` also gives a live view of the simulator in the browser that only your GitHub account can open.\nThe part I use most now is `box debug`. It launches the app under LLDB on the Mac, taps through to the code if it needs to, and prints the stack and variables at every stop:\n\n``` bash\n$ box debug -b ContentView.swift:42\n```\n\nThe agent gets the stack and the variables as text and reads them itself, instead of guessing from print statements. You can print the variables you name, or every local. You can break on `File.swift:42` or a function name, up to 10 of them. It's also exposed as an MCP tool, so the agent can call it without going through the shell.\n\nYou paste one line into Claude Code, Codex or Cursor:\n\n```\nSet up box with https://xenoci.com/setup\n```\n\nThe agent installs the CLI and gives you a link to sign in with GitHub.\n\nPricing: $0.05 per Mac minute (every started minute), prepaid in US dollars with $10 of credit to start, no subscription. Upload, queue and Mac start aren't billed, and a job that fails because of us costs nothing.\n\nSite: [https://xenoci.com](https://xenoci.com)\n\nIf you do iOS work with agents, I'm curious what you'd want the agent to get back from the Mac that it can't today.", "url": "https://wpnews.pro/news/letting-a-coding-agent-on-linux-build-test-and-debug-an-ios-app", "canonical_source": "https://dev.to/hyunsoo_xenoci/letting-a-coding-agent-on-linux-build-test-and-debug-an-ios-app-1c09", "published_at": "2026-11-27 16:37:57+00:00", "updated_at": "2026-11-27 16:42:21.042989+00:00", "lang": "en", "topics": ["ai-agents", "developer-tools", "ai-tools"], "entities": ["box", "xenoci.com", "Claude Code", "Codex", "Cursor", "GitHub", "LLDB", "Xcode"], "also_reported_by": [], "takeaway": "Returning short structured build and test results—an error count with file:line, or a pass/fail count with saved artifacts—plus incremental file sync (3 of 70 files compiled, 10.8s rebuild after a one-line edit) keeps a coding agent's context focused on the actual failure.", "recommendation": {"advice": "Give coding agents condensed, structured build and test output with file:line references and sync only changed files, so they fix the real error instead of burning context on full logs.", "playbook": "coding-agents", "playbook_url": "https://wpnews.pro/playbooks/coding-agents"}, "alternates": {"html": "https://wpnews.pro/news/letting-a-coding-agent-on-linux-build-test-and-debug-an-ios-app", "markdown": "https://wpnews.pro/news/letting-a-coding-agent-on-linux-build-test-and-debug-an-ios-app.md", "text": "https://wpnews.pro/news/letting-a-coding-agent-on-linux-build-test-and-debug-an-ios-app.txt", "jsonld": "https://wpnews.pro/news/letting-a-coding-agent-on-linux-build-test-and-debug-an-ios-app.jsonld"}}