Skip to main content
When to use it.
  • You or your agent changed Swift code and want to know it compiles, without a Mac or Xcode on your machine
  • You need an app for a real iPhone, built in Release and unsigned, to sign on your own computer
  • Your release script makes an IPA, and you want that IPA back

Build for the simulator

From the root of the project (the folder with the .xcodeproj, .xcworkspace, Package.swift or XcodeGen project.yml)

box build sending the project and building it for the iOS simulator

XenoCI Box uploads only the files that changed, builds on the Mac and streams one line per step
Job bj_IT3ANGI6EQ0D6NpQ on the production Mac: 60 s billed, $0.05
The whole log is in .box/out/<job>/build.log. When the build fails, each compile error comes as file:line:col with your local path and the lines around it, and box exits with 1. Add --scheme, --configuration or --workspace when the project has more than one A .box/setup script at the project root runs on the build machine before box build, box test and box run, once until its contents change. If it fails, the build does not start. Put framework downloads and .xcconfig copies there; it is not a place for secrets, and .env is never uploaded. box build --dry-run lists what would be sent and says whether it would run Each job prints one line per step, from your source to the results
1

Upload

box checks every file and sends only the new or changed ones. .gitignore is respected and .env is never sentbox: upload: 70 files checked, 3 new (12 KB), .gitignore respected, .env never sent
2

Mac

The job waits for a free Mac (not billed), which unpacks your source next to the project’s previous buildbox: machine: source unpacked
3

Build

xcodebuild compiles only what changed since that buildbox: build: done in 41s
4

Test

Your tests run on a simulator and are countedbox: tests 3 passed, 0 failed
5

Results

Logs, the result bundle and screenshots come back to .box/out/<job>/, and the last line says what it costbox: bj_… succeeded, 120s billed, $0.10

Build for a device

An unsigned Release build for a real iPhone, saved as device-build.zip with the app inside Payload/. Sign it on your own computer; box keeps no certificates or profiles
Job bj_uhnY5KdXm3RW3HOv on the production Mac: 60 s billed, $0.05

Get an IPA back

box has no IPA command of its own. Run your own archive script with box exec and copy the IPA into $BOX_OUT; it comes back to .box/out/<job>/. The example on the Exec page does exactly this

Next

  • Test: build and run your tests on a fresh simulator
  • Why it failed: where to read a failure first