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

# Flutter, Capacitor and Kotlin Multiplatform

> box detects Flutter, Capacitor and Kotlin Multiplatform apps and builds, tests and screenshots them with no setup file

box detects these frameworks from your files and prepares the project on the machine. You do not upload `node_modules`, Pods or the Flutter SDK.

| Framework | Detected by | iOS project box builds |
| - | - | - |
| Flutter | `pubspec.yaml` with `sdk: flutter` | `ios/Runner.xcworkspace` |
| Capacitor | `capacitor.config.ts`, `.js` or `.json` | `ios/App/App.xcworkspace` |
| Kotlin Multiplatform | the multiplatform plugin in `build.gradle.kts`, or `iosApp/*.xcodeproj` | `iosApp` |

When a folder has multiple iOS projects, pass `--platform ios` to select the iOS app. The error names the framework it found.

## Flutter

```sh theme={"system"}
box build
box test
box screenshot
```

The first iOS job installs the Flutter SDK on your project's disk, about 2 GB. That takes 2 to 3 minutes once. Later jobs reuse it. box uses the version in `.fvmrc`, `.flutter-version` or an exact `flutter:` version under `environment:` in `pubspec.yaml`. Otherwise it uses the current stable version. Then it runs `flutter pub get`, `flutter precache --ios` and `pod install`.

`box test` runs `flutter test` and needs no simulator. It reports passed and failed tests like an Xcode test job.

## Capacitor

box runs `npm ci` (or `npm install` without a lockfile), then `npm run build` when your `package.json` has a build script, then `npx cap sync ios`. Keep `@capacitor/cli` in your dependencies.

## Kotlin Multiplatform

On iOS, box builds the Xcode project in `iosApp/` with Java 17. Gradle and Kotlin/Native downloads stay on your project's disk, so the next build is faster.

## Your own steps

If your project has `.box/setup`, or you pass `--workspace`, box runs your steps instead of the ones above.

To try it, paste `Set up XenoCI Box with https://docs.xenoci.com/setup` into Claude Code, Codex or Cursor, or follow the [Quickstart](https://docs.xenoci.com/quickstart.md). [Start with \$10 of credit, good for 1 year](https://xenoci.com/?ref=docs-frameworks).


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