> ## 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).

# Xcode on Windows: what works

> Xcode does not run on Windows. Keep editing on Windows and run iOS builds, simulator tests and screenshots 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).

Xcode is Apple's development environment for iOS apps, and it runs on macOS. You can't install or run Xcode on Windows. A virtual machine or compatibility layer doesn't turn a Windows PC into a supported Xcode environment.

What does work is writing your app on Windows and sending its project to a real Mac for Xcode builds, tests and simulator screenshots. XenoCI Box runs those jobs remotely and brings the result back to your project.

## Before you start

Have an iOS project and PowerShell on Windows. Install box and sign in with GitHub:

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

The first sign-in adds \$10 of credit to start, good for 1 year.

## Build and test from Windows

In PowerShell, change to your project folder, then build:

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

Run tests on a simulator with:

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

To capture the app on a simulator, use `box screenshot app.png`. A successful job prints its status and saves logs and any screenshot under `.box/out/<job>/`.

## Troubleshooting

`xcodebuild` won't be available in a normal Windows shell because Xcode isn't installed there. Run `box build` from the root of your project instead. If box can't find a project, check that the folder contains its `.xcodeproj`, `.xcworkspace` or supported project files. Read the saved build log for compiler errors.

You can also run builds in GitHub Actions on XenoCI's Mac runner. Connect your account, then use `runs-on: xenoci` in the workflow. See [GitHub Actions](https://docs.xenoci.com/ci/github.md).

Related: [Build an iOS app on Windows](https://docs.xenoci.com/guides/build-ios-app-on-windows.md), [iOS build on Linux](https://docs.xenoci.com/guides/build-ios-from-linux.md), [Build](https://docs.xenoci.com/ios/build.md), [Test](https://docs.xenoci.com/ios/test.md).

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


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