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

# Can you use Xcode Cloud without a Mac?

> Xcode Cloud builds run on Apple's Macs, but the first setup has to happen in Xcode on a Mac. What you can do afterwards from App Store Connect and its API, and what to use when you have no Mac for the first step.

Short answer: not for the first step. Apple's guide to [configuring your first Xcode Cloud workflow](https://developer.apple.com/documentation/xcode/configuring-your-first-xcode-cloud-workflow) says to use Xcode to configure a project for Xcode Cloud. After the first build has completed, you can create and edit workflows in either Xcode or App Store Connect.

## What needs a Mac

* **The first setup.** Connecting the project to Xcode Cloud, granting access to your Git provider and starting the first build happen in Xcode.
* **Fixing a build that fails only in Xcode Cloud.** You read the logs in App Store Connect, but reproducing the failure, changing build settings, schemes or `ci_scripts`, and checking the fix usually means running the same `xcodebuild` steps on a Mac.

## What works without a Mac, after the first build

* **App Store Connect on the web.** Create, edit and start workflows, read build logs and test results, and download artifacts.
* **The App Store Connect API.** The [Xcode Cloud workflows and builds](https://developer.apple.com/documentation/appstoreconnectapi/xcode-cloud-workflows-and-builds) resources let you read products, workflows and builds, create workflows (`POST /v1/ciWorkflows`) and start builds (`POST /v1/ciBuildRuns`) from any system, with a JWT signed by your API key.
* **Git pushes and pull requests.** Workflows with a branch or pull request start condition run on every push, so day-to-day work only needs Git.

## Compute hours

Apple Developer Program membership includes 25 compute hours a month, and Apple sells monthly plans for more. See Apple's [Xcode Cloud overview](https://developer.apple.com/xcode-cloud/) for current plans.

## If you have no Mac for the first step

You need macOS once, for about the length of a first build. Options:

* Borrow a Mac for the setup, then work from App Store Connect and Git.
* Use a different CI service that does not need a local Mac to set up, such as GitHub Actions macOS runners. See [Xcode Cloud alternative for iOS builds](https://docs.xenoci.com/guides/xcode-cloud-alternative.md).
* Use box. `box exec` runs commands on a real Mac from Windows or Linux, and `box build` builds your project there. box does not open the Xcode user interface, so it can't do the Xcode Cloud setup itself; it covers the build and test steps instead of Xcode Cloud. See [Build](https://docs.xenoci.com/ios/build.md) and [Exec](https://docs.xenoci.com/ios/exec.md).

Related: [Xcode Cloud alternative for iOS builds](https://docs.xenoci.com/guides/xcode-cloud-alternative.md), [Upload an IPA to App Store Connect without Xcode](https://docs.xenoci.com/guides/upload-ipa-without-xcode.md), [Ship an iOS app from Linux](https://docs.xenoci.com/guides/ship-ios-from-linux.md).


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