# OpenCLI Agent Pack: xcodebuild

Use this when an AI agent needs to work with `xcodebuild`.

## What this CLI is for
The official CLI from Apple. Apple builds, ios/macos projects, and xcode automation from the terminal. Runs entirely on your machine.

Best for: apple builds, ios/macos projects, and xcode automation from the terminal.

## Agent readiness
Usable with guardrails (60/100)
- Supports non-interactive/scripted use.
- Works well in CI or repeatable automation.
- Can run locally with less credential exposure.

## Install
```sh
xcode-select --install
```

## Verify before real work
```sh
xcodebuild --version
```
Expected signal: xcodebuild responds locally and is ready for the first real command.

## Safe starting commands
```sh
xcodebuild --version
```

```sh
xcodebuild -list
```

## Guardrails for agents
- Prefer small commands and ask the agent to summarize plain text output.
- Network access is required; avoid leaking secrets in logs.
- Start read-only, then ask before mutations.

## Suggested agent instruction
You may use xcodebuild (`xcodebuild`) for apple builds, ios/macos projects, and xcode automation from the terminal.. First install it if missing, then run the verify command. Start with read-only or inspection commands. Summarize what you found before changing anything. Ask for confirmation before commands that mutate remote state, spend money, deploy, delete data, merge code, or expose secrets.

Source: OpenCLI
