{"schemaVersion":"opencli.cli.v1","slug":"xcodebuild","name":"xcodebuild","shortName":"xcodebuild","binaryName":"xcodebuild","maker":{"slug":"apple","name":"Apple","type":"org","url":"https://apple.com","officialPlatformMaker":true,"featuredBuilder":false},"category":"Package Management","description":"The official CLI from Apple. Apple builds, ios/macos projects, and xcode automation from the terminal. Runs entirely on your machine.","tagline":"Apple builds, ios/macos projects, and xcode automation from the terminal.","install":{"packageManager":"curl","command":"xcode-select --install","packageName":null,"npmPackage":null,"brewFormula":null,"brewCask":null,"crateName":null,"pypiPackage":null,"goPackage":null,"dockerImage":null},"verify":{"command":"xcodebuild --version","signal":"xcodebuild responds locally and is ready for the first real command."},"quickStart":"xcodebuild -list","exampleWorkflow":["xcodebuild -list"],"agent":{"readiness":{"label":"Usable with guardrails","score":60,"reasons":["Supports non-interactive/scripted use.","Works well in CI or repeatable automation.","Can run locally with less credential exposure."],"guardrails":["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."]},"packUrl":"https://opencli.co/cli/xcodebuild/agent.md","packMarkdown":"# OpenCLI Agent Pack: xcodebuild\n\nUse this when an AI agent needs to work with `xcodebuild`.\n\n## What this CLI is for\nThe official CLI from Apple. Apple builds, ios/macos projects, and xcode automation from the terminal. Runs entirely on your machine.\n\nBest for: apple builds, ios/macos projects, and xcode automation from the terminal.\n\n## Agent readiness\nUsable with guardrails (60/100)\n- Supports non-interactive/scripted use.\n- Works well in CI or repeatable automation.\n- Can run locally with less credential exposure.\n\n## Install\n```sh\nxcode-select --install\n```\n\n## Verify before real work\n```sh\nxcodebuild --version\n```\nExpected signal: xcodebuild responds locally and is ready for the first real command.\n\n## Safe starting commands\n```sh\nxcodebuild --version\n```\n\n```sh\nxcodebuild -list\n```\n\n## Guardrails for agents\n- Prefer small commands and ask the agent to summarize plain text output.\n- Network access is required; avoid leaking secrets in logs.\n- Start read-only, then ask before mutations.\n\n## Suggested agent instruction\nYou 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.\n\nSource: OpenCLI\n"},"fit":{"bestFor":"apple builds, ios/macos projects, and xcode automation from the terminal.","useThisIf":"You want packages and builds that runs entirely on your machine.","skipIf":"You don't work with packages and builds.","whatHappensNext":"Run `xcodebuild -list` and see what comes back."},"capabilities":{"agentFriendly":true,"supportsJsonOutput":false,"supportsNonInteractive":true,"supportsDryRun":false,"requiresAuth":false,"requiresNetwork":true,"ciFriendly":true,"localFirst":true,"destructivePotential":"medium"},"taxonomy":{"useCases":["Apple builds","iOS/macOS projects","Xcode automation"],"aliases":[],"keywords":["apple","xcode","ios","macos"],"tags":[]},"links":{"website":"https://developer.apple.com/documentation/xcode/building-your-app-from-the-command-line","github":"https://github.com/apple-oss-distributions/xcode_tools","docs":"https://developer.apple.com/documentation/xcodebuild","opencli":"https://opencli.co/cli/xcodebuild","markdown":"https://opencli.co/cli/xcodebuild/agent.md","json":"https://opencli.co/cli/xcodebuild.json"},"metrics":{"githubStars":null,"latestRelease":null,"license":null,"metricLabel":null,"metricValue":null,"metricSource":null,"metricAsOf":"2026-06-08T11:01:09.638Z"}}