> ## 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 a Capacitor iOS app without a Mac

> Build and test a Capacitor iOS app from Windows or Linux by running the documented iOS workflow on 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).

Capacitor's iOS app uses Apple's Xcode toolchain, which runs on macOS. You can develop on Windows or Linux and use XenoCI Box to build, test and capture the iOS app on a real Mac.

Example project: [Xeno-CI/box-examples](https://github.com/Xeno-CI/box-examples/tree/main/capacitor) is a plain Capacitor app with a GitHub Actions workflow that uses `runs-on: xenoci`.

## Before you start

Have a Capacitor project with `capacitor.config.ts`, `.js` or `.json`, and keep `@capacitor/cli` in your project dependencies. Make sure the project has an iOS target. You'll also need GitHub sign-in for box. Your first sign-in adds \$10 of credit to start, good for 1 year.

## Install and sign in

On Linux:

```bash theme={"system"}
curl -fsSL https://xenoci.com/install.sh | sh
box login
```

On Windows PowerShell:

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

## Build and test

Run these commands from the project root:

```text theme={"system"}
box build --platform ios
box test --platform ios
```

For a simulator screenshot, run `box screenshot --platform ios app.png`. Box detects Capacitor, installs the project dependencies on the Mac, runs the build script when present, syncs the iOS project, and builds it. Job logs and screenshots are under `.box/out/<job>/`.

## Troubleshooting

Keep `@capacitor/cli` in your dependencies and check that the project has its iOS target. If you customized the native build steps, use a `.box/setup` script or run your own Mac command with `box exec`; see [Exec](https://docs.xenoci.com/ios/exec.md). Check `build.log` for errors from the package install, sync or Xcode build.

Related: [Framework builds](https://docs.xenoci.com/guides/frameworks.md), [Build an iOS app on Windows](https://docs.xenoci.com/guides/build-ios-app-on-windows.md), [Xcode on Windows](https://docs.xenoci.com/guides/xcode-on-windows.md), [Build](https://docs.xenoci.com/ios/build.md).

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


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