
Xcode Sync
FreeEffortlessly synchronize Xcode builds across multiple Macs.
Free · Opens the source repo
What Xcode Sync does
Xcode Sync is a specialized tool designed for developers who manage multiple Macs running Xcode. It ensures that all Xcode builds are consistently synchronized across supported machines, allowing for a streamlined development process. This skill leverages SSH and Tailscale for secure communication and inventory management, making it easier to maintain a fleet of Macs without manual intervention.
The skill operates by reading a configuration file that details the Macs in your fleet, checking their status and reachability using Tailscale. It verifies each machine's compatibility by checking its hostname, user, macOS version, architecture, and hardware UUID. This thorough approach helps to prevent issues that may arise from syncing to incompatible or unknown hosts. Additionally, it includes a deduplication step to handle multiple records for the same hardware, ensuring accurate inventory management.
Xcode Sync also features a simulator hygiene audit, which is crucial for maintaining a clean development environment. It identifies and removes outdated or unusable simulator runtimes, ensuring that only the necessary components are present on each Mac. This audit can be performed locally or remotely, and it provides feedback on the state of each machine, allowing for quick remediation of any drift detected in the environment.
For installation, Xcode Sync transfers signed archives of Xcode, ensuring that the correct versions are installed based on your fleet's macOS compatibility. The skill follows strict policies for app installation and verification, maintaining a clear rollback strategy in case of any issues during the update process. Overall, Xcode Sync is an essential tool for developers managing a fleet of Macs, providing efficiency and reliability in maintaining Xcode environments.
When to use it
Use Xcode Sync when you need to maintain multiple Macs with the same Xcode version and configurations, especially in a team or fleet environment.
When not to use it
This skill may not be suitable for single-user setups or environments where Xcode versions vary significantly across machines, as it is optimized for fleet management.
What you can build with it
Synchronizing a Development Team's Macs
A team of developers can use Xcode Sync to ensure all their Macs are running the same version of Xcode, reducing compatibility issues.
Maintaining Simulator Hygiene
Regularly run the simulator hygiene audit to keep your development environment clean and free from outdated runtimes.
Automating Xcode Installations
Easily transfer and install signed Xcode archives across multiple Macs without manual intervention, streamlining the setup process.
How to install Xcode Sync
View source1. Install with the skills CLI
npx skills add steipete/agent-scripts/xcode-sync --agent claude-code2. Or install it manually
Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.
Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs
Inside SKILL.md
Written by steipeteXcode Sync
Synchronize exact Xcode builds across Peter's supported Macs. Use $remote-mac for fleet topology and SSH rules.
Inventory
- Read
~/Projects/manager/computers.yaml; use livetailscale status --jsonfor reachability/IPs. - Exclude handed-off and unknown hosts. Verify
hostname, user, macOS, architecture, and hardware UUID before writes. - Deduplicate Tailscale nodes by hardware UUID; one Mac may have multiple live node records.
- Run
scripts/xcode-host-inventory.shlocally or remotely:
skills/xcode-sync/scripts/xcode-host-inventory.sh
ssh -o RequestTTY=no -o RemoteCommand=none HOST 'bash -s' \
< skills/xcode-sync/scripts/xcode-host-inventory.sh
Treat unreachable hosts as pending, not synchronized. Try live Tailscale IP, Tailscale SSH, then mDNS/LAN only when network topology permits.
Simulator hygiene
Every fleet Mac must pass the simulator-hygiene audit, including worker Macs where the correct result is not-applicable because Xcode and simctl are absent. Apple CoreSimulator's own classifications are authoritative: remove runtime images reported by simctl runtime delete --outdated --dry-run or --unusable --dry-run, plus simulator devices attached to unavailable runtimes. Do not classify a runtime as stale from its version number alone; stable and beta Xcodes can legitimately need different runtime generations on the same Mac.
Run the dependency-light audit locally or stream it to a remote Mac:
skills/xcode-sync/scripts/xcode-simulator-hygiene.sh
ssh -o RequestTTY=no -o RemoteCommand=none HOST 'bash -s' \
< skills/xcode-sync/scripts/xcode-simulator-hygiene.sh
The audit exits 1 for drift. After verifying the host identity and current Xcode work, repair with --repair; the action deletes unavailable devices and Apple's outdated/unusable runtime candidates, then re-audits. It refuses repair while a simulator device is booted. Do not use age-based runtime deletion, --notUsedSinceDays, or all for routine fleet maintenance.
Inspect source
Prefer the user's downloaded .xip; do not redownload it.
pkgutil --check-signature "$archive"
shasum -a 256 "$archive"
stage=$(mktemp -d /tmp/xcode.XXXXXX)
cleanup() { rm -rf "$stage"; }
trap cleanup EXIT
(cd "$stage" && xip --expand "$archive")
set -- "$stage"/Xcode*.app
[[ $# == 1 && -d "$1" ]]
app=$1
plutil -extract CFBundleShortVersionString raw -o - "$app/Contents/Info.plist"
plutil -extract ProductBuildVersion raw -o - "$app/Contents/version.plist"
plutil -extract LSMinimumSystemVersion raw -o - "$app/Contents/Info.plist"
DEVELOPER_DIR="$app/Contents/Developer" xcodebuild -version
cleanup
trap - EXIT
Require Apple Software signature. Compare ProductBuildVersion, not version label alone: two archives named Xcode 26.6 may contain different builds. Do not use DTXcodeBuild as the sync key; it can differ from the build reported by xcodebuild -version.
Compatibility
- Require Apple silicon for an Apple-silicon-only archive.
- Require host macOS >=
LSMinimumSystemVersion. - Fleet rule: install Xcode 26.6 only on macOS 26 Tahoe, version 26.2 or newer. Skip macOS 27 Golden Gate even if the bundle launches.
- Apply explicit user exclusions after technical checks.
Never change a host OS to make an Xcode build eligible unless explicitly requested.
Transfer and install
- Transfer the signed archive, not an expanded app; preserve resumability:
rsync -a --partial --progress -e 'ssh -o RequestTTY=no -o RemoteCommand=none' \
"$archive" HOST:Downloads/
- Verify the remote SHA-256 and signature before expansion.
- Expand on the destination. Use a single-quoted remote script or
ssh HOST 'bash -s'; never let the local shell expand remote$variablesor$(commands). - Keep this app policy:
- current stable:
/Applications/Xcode.app - newest prerelease, beta or RC:
/Applications/Xcode-beta.app - previous-major stable:
/Applications/Xcode-previous.app, only for three months after a new stable major ships unless the user sets another window
- current stable:
- Replace same-major point releases and same-channel prereleases; do not preserve them. An RC replaces the beta slot. Validate the staged app, move the old app to a temporary rollback path, install and verify the new app, then delete the rollback copy. Restore the old app on failure.
- When stable advances to a new major, rotate transactionally: move any existing
Xcode-previous.appto a temporary rollback path, move the former stable toXcode-previous.app, install and verify the new stable, then delete the older rollback copy. Restore both channel paths on failure. Record the new previous-major removal date in the task report. - Stop on unexpected destination collisions. Never delete an app outside these known channels without explicit confirmation.
- Preserve
xcode-selectunless the user requests a switch. Replacing the app at the already-selected path preserves selection.
Use writable /Applications directly. Otherwise use passwordless sudo -n; if admin approval is required, show a local macOS authorization prompt or report the exact pending step. Do not bypass receipts or license state.
First launch and verification
For every installed app:
DEVELOPER_DIR="$app/Contents/Developer" xcodebuild -version
codesign --verify --deep --strict "$app"
DEVELOPER_DIR="$app/Contents/Developer" xcodebuild -checkFirstLaunchStatus
If first-launch status is nonzero:
sudo env DEVELOPER_DIR="$app/Contents/Developer" xcodebuild -license accept
sudo env DEVELOPER_DIR="$app/Contents/Developer" xcodebuild -runFirstLaunch
Recheck until status 0. If sudo/admin UI is unavailable, the app is installed but not ready; report that distinction.
Finish with a host matrix: macOS, desired version/build, installed path, selected path, signature, first-launch state, simulator-hygiene state, previous-major removal date, and skip/failure reason. Keep source archives unless deletion is explicitly requested.
Frequently asked questions about Xcode Sync
Similar skills
Turborepo
Optimized build system for JavaScript/TypeScript monorepos.
Azure Pipelines Validation
Streamline your Azure DevOps pipeline changes locally.
Azure Developer CLI
Streamline your Azure project workflows with best practices.
Azure Container Registry CLI
Manage Azure Container Registry resources with ease.
Aspire
Build and orchestrate polyglot distributed applications seamlessly.
Vercel CLI
Manage and deploy Vercel projects from the command line.
