Help us improve
Share bugs, ideas, or general feedback.
Share bugs, ideas, or general feedback.
Share bugs, ideas, or general feedback.
Xcode CLI — Build, test, run, and manage Xcode projects from Claude Code.
npx claudepluginhub marcelrgberger/xcode-cliAgent-operable CLI for Xcode on macOS. Build, test, run, clean, archive Xcode projects, manage simulators and physical devices, inspect build results -- all from the command line or an interactive REPL.
Designed as a Claude Code plugin for controlling Xcode programmatically.
xcode-select --install)cd agent-harness
python3 -m venv .venv
source .venv/bin/activate
pip install -e .
# Workspace operations
xcode-cli workspace list
xcode-cli workspace open ~/Developer/MyApp/MyApp.xcodeproj
xcode-cli workspace schemes
xcode-cli workspace destinations
xcode-cli workspace projects
xcode-cli workspace targets
xcode-cli workspace settings --target MyApp --config Debug
xcode-cli workspace active
# Build operations
xcode-cli build build --scheme MyApp
xcode-cli build run --scheme MyApp
xcode-cli build test --scheme MyApp --destination "platform=iOS Simulator,name=iPhone 16"
xcode-cli build clean --scheme MyApp
xcode-cli build stop
xcode-cli build archive --scheme MyApp --output ~/Desktop/MyApp.xcarchive
xcode-cli build status
xcode-cli build errors
xcode-cli build warnings
xcode-cli build test-failures
xcode-cli build log
# Simulator management
xcode-cli simulator list --available
xcode-cli simulator boot "iPhone 16"
xcode-cli simulator shutdown "iPhone 16"
xcode-cli simulator install "iPhone 16" /path/to/MyApp.app
xcode-cli simulator launch "iPhone 16" com.example.myapp
xcode-cli simulator screenshot "iPhone 16" ~/Desktop/screenshot.png
xcode-cli simulator create "My Sim" "com.apple.CoreSimulator.SimDeviceType.iPhone-16" "com.apple.CoreSimulator.SimRuntime.iOS-18-0"
xcode-cli simulator delete "My Sim"
xcode-cli simulator types
xcode-cli simulator runtimes
# Physical devices
xcode-cli device list
xcode-cli device info <udid>
# Editor
xcode-cli editor file
xcode-cli editor text
xcode-cli editor selection
xcode-cli editor goto 42
xcode-cli editor open /path/to/file.swift
# Session
xcode-cli session status
Add --json before any command for machine-readable output:
xcode-cli --json workspace schemes
xcode-cli --json build build --scheme MyApp
xcode-cli --json simulator list --available
Run without arguments to enter the REPL:
xcode-cli
The REPL provides the same commands with tab completion and command history.
xcode_cli/
__init__.py # Package version
__main__.py # python -m xcode_cli entry point
xcode_cli.py # Click CLI + REPL
utils/
xcode_backend.py # osascript, xcodebuild, xcrun wrappers
repl_skin.py # Terminal UI skin
core/
workspace.py # Workspace/project/scheme operations (AppleScript)
build.py # Build/test/clean/archive (xcodebuild + AppleScript)
simulator.py # Simulator management (xcrun simctl)
devices.py # Physical device management (xcrun devicectl)
editor.py # Editor/document operations (AppleScript)
session.py # Session state management
tests/
__init__.py
graph LR
U[User / Claude] -->|/xcode command| CLI[xcode-cli]
CLI -->|AppleScript| X[Xcode App]
CLI -->|xcodebuild| B[Build System]
CLI -->|xcrun simctl| S[Simulators]
CLI -->|xcrun devicectl| D[Physical Devices]
X -->|Schemes, Destinations| CLI
B -->|Build Status, Errors| CLI
S -->|Screenshots, App Install| CLI
tell application "Xcode"xcodebuild CLI (more reliable output parsing)xcrun simctlxcrun devicectlThis repository is structured as a Claude Code plugin with:
.claude-plugin/plugin.json -- Plugin metadatacommands/xcode.md -- /xcode slash commandskills/xcode/SKILL.md -- Skill definition with triggersMIT -- Marcel R. G. Berger
Share bugs, ideas, or general feedback.
Based on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
Modular iOS development automation suite. 8 workflow-specific MCP servers (600-3500 tokens) with 23 tools across Xcode, Simulator, and IDB. Enable only what you need!
Build and manage iOS/macOS apps using native xcodebuild and xcrun simctl CLI tools. Replaces XcodeBuildMCP with direct CLI commands and XCUITest for UI automation.
iOS development validation with Xcode build hooks.
Tools to maintain and improve CLAUDE.md files - audit quality, capture session learnings, and keep project memory current.
Comprehensive skill pack with 66 specialized skills for full-stack developers: 12 language experts (Python, TypeScript, Go, Rust, C++, Swift, Kotlin, C#, PHP, Java, SQL, JavaScript), 10 backend frameworks, 6 frontend/mobile, plus infrastructure, DevOps, security, and testing. Features progressive disclosure architecture for 50% faster loading.
Comprehensive .NET development skills for modern C#, ASP.NET, MAUI, Blazor, Aspire, EF Core, Native AOT, testing, security, performance optimization, CI/CD, and cloud-native applications
Apple Pages CLI — Create, edit, format, and export Pages documents directly from Claude Code.
WhatsApp CLI — Read chats, send messages, auto-reply, and export conversations from Claude Code.
Manage domains and DNS records via INWX API (domrobot XML-RPC)
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge.
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge.
Sign in to claim