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

> Develop a React Native app on Windows or Linux and run its iOS build and simulator tests 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).

You can write React Native code on Windows or Linux, but the iOS app still needs Apple's Xcode toolchain on a Mac. XenoCI Box runs the Mac-side build and tests while your source stays in your local project.

Example project: [Xeno-CI/react-native-ios-without-mac](https://github.com/Xeno-CI/react-native-ios-without-mac) is a plain React Native app with a GitHub Actions workflow that uses `runs-on: xenoci`.

## Before you start

Prepare a React Native project with its iOS native project and dependencies described by your project files. You'll need Node and your package manager locally to work on the app, plus GitHub sign-in for box. The first sign-in adds \$10 of credit to start, good for 1 year.

## Install box

On Linux, install and sign in with:

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

On Windows, use PowerShell:

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

## Build and test the iOS project

From the project root, where the native iOS project is available, run:

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

For a simulator screenshot, run `box screenshot --platform ios app.png`. Jobs return their logs and screenshot under `.box/out/<job>/`.

## Troubleshooting

If the project has no generated `ios/` folder, run your framework's documented native-project generation step before building. Box detects documented frameworks such as Flutter and Capacitor, but React Native is not listed among the automatic framework detections. For a React Native project, follow its own setup and build instructions, and make sure the Xcode project, workspace and dependencies are present for the Mac build.

Read the job's `build.log` if Xcode reports a build error. See [Build](https://docs.xenoci.com/ios/build.md), [Exec](https://docs.xenoci.com/ios/exec.md) for running your own Mac command, and [GitHub Actions](https://docs.xenoci.com/ci/github.md) for the `xenoci` Mac runner.

Related: [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), [iOS build on Linux](https://docs.xenoci.com/guides/build-ios-from-linux.md).

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


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