# xdev
iOS/macOS development CLI that wraps `xcodebuild`, `simctl`, and `devicectl` into simple commands.
## Installation
```sh
cargo install --path .
```
## Usage
```sh
# Save project settings
xdev init
# Show workspace info, schemes, simulators, configs
xdev context
# Build for simulator, device, or macOS
xdev build
xdev build --device
xdev build --mac
# Build and run
xdev run
xdev run --device
# Run tests
xdev test
# Clean build artifacts
xdev clean
# Stream logs from running app
xdev logs
# Manage simulators
xdev simulator list
xdev simulator boot <name>
xdev simulator create <name> <device-type> <runtime>
xdev simulator delete <name>
# Manage physical devices
xdev device list
xdev device install <app-path>
xdev device launch <bundle-id>
# UI automation
xdev ui tap <x> <y>
xdev ui swipe <x1> <y1> <x2> <y2>
xdev ui screenshot
```
## JSON Output
All commands support `--json` for machine-readable output (NDJSON for streaming commands).
```sh
xdev context --json
xdev simulator list --json
```