> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xenoci.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> ## XenoCI Box CI
> To move a repository's macOS CI jobs onto box, follow https://docs.xenoci.com/ci/agent.md. The user only presses Install on GitHub or makes one GitLab runner token; the agent does the rest.
> - Check: `box ci status` (exit 4: sign in first, https://docs.xenoci.com/setup.md).
> - GitHub organization: `box ci connect --org --no-browser --no-wait`, give the user the printed link (https://github.com/apps/xenoci-with-organizations/installations/new), then repeat `box ci accounts` until the owner appears. Personal account: `--personal` (https://github.com/apps/xenoci-with-personal/installations/new).
> - GitHub workflow: change only `runs-on: macos-*` to `runs-on: xenoci` on a branch and open a pull request.
> - GitLab: the user makes a project runner with tag `xenoci` and gives you the `glrt-` token; pipe it to `box ci gitlab connect -` (self-managed: `--url <gitlab url>`), then add `tags: [xenoci]` to the macOS jobs.
> - Watch: `box ci jobs`, `box ci logs <job id> --follow`. Failed job: `box ci jobs --failed`, then `box ci debug <job id>` (failing step, hint, last 200 log lines).

# Build an iOS app on Windows

> Xcode cannot run on Windows, but you can build and test an iOS project from Windows by sending it to a real Mac with XenoCI Box.

> [!NOTE]
>
> **Try it now:** paste this line into Claude Code, Codex or Cursor. It installs box, signs you in with GitHub and runs your first build:
>
> ```text theme={"system"}
> Set up XenoCI Box with https://docs.xenoci.com/setup
> ```
>
> Your first sign-in adds \$10 of credit, about 200 Mac minutes (once per GitHub account).

Windows can't run Xcode, so an iOS build must run on a Mac. XenoCI Box gives your Windows project a remote Mac build while you keep using your editor and coding agent.

## Before you start

You need a Windows PC, an iOS project, PowerShell, and a GitHub account to sign in. The first sign-in adds \$10 of credit to start, good for 1 year.

## Install and sign in

Open PowerShell and install box:

```powershell theme={"system"}
irm https://xenoci.com/install.ps1 | iex
```

Then sign in:

```powershell theme={"system"}
box login
```

Approve the GitHub sign-in page opened by the command. From your project folder, run:

```powershell theme={"system"}
box build
```

## Check the result

A successful build reports `** BUILD SUCCEEDED **` and saves its log under `.box/out/<job>/build.log`. To run project tests on an iOS simulator, use:

```powershell theme={"system"}
box test
```

For a simulator screenshot, run `box screenshot app.png`. The image is saved under that job's output folder.

## Troubleshooting

If PowerShell says `box` is not recognized, open a new PowerShell window so the updated PATH is loaded. Run the command from the project root, where the Xcode project or workspace is located. If the build fails, read `build.log` and see [Why it failed](https://docs.xenoci.com/ios/why.md).

For GitHub Actions, connect an account with `box ci connect --personal` or `box ci connect --org`, then set the workflow runner to `runs-on: xenoci`. See [GitHub Actions](https://docs.xenoci.com/ci/github.md).

Related: [Xcode on Windows](https://docs.xenoci.com/guides/xcode-on-windows.md), [iOS build on Linux](https://docs.xenoci.com/guides/build-ios-from-linux.md), [Install and sign in](https://docs.xenoci.com/ios/install.md), [Build](https://docs.xenoci.com/ios/build.md).

[Start with \$10 of credit, good for 1 year](https://xenoci.com/?ref=docs-build-ios-app-on-windows).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.