xcodes downloads, installs, selects, and removes multiple Xcode versions on macOS from the terminal.
Overview
xcodes is a command-line tool to install and switch between multiple versions of Xcode on a Mac. A separate GUI product, Xcodes.app, offers an app-based experience from the same ecosystem.
The install flow authenticates with an Apple ID, stores credentials in the keychain, and downloads the requested release into a chosen directory, defaulting to Applications. Optional aria2 integration can speed downloads with multiple connections. Commands also list available and installed versions, update the release catalog, change the active Xcode with xcode-select integration, uninstall copies, and manage simulator runtimes.
Release builds install via Homebrew as signed, notarized binaries that do not require an existing Xcode toolchain. Building from source needs a recent Swift toolchain and a full Xcode selected for compilation.
Architecture labels distinguish universal, Apple Silicon–only, and Intel-only builds when listing releases. A .xcode-version file is recommended so teams and CI pin the expected Xcode. Shell completion scripts are supported for zsh and other shells.
Key features
- Download and install Xcode releases
- Switch active Xcode selection
- List available and installed versions
- Custom install directory support
- Optional aria2-accelerated downloads
- Simulator runtime installation
- Apple ID authentication with keychain
- Shell tab-completion scripts
Use cases
- Managing several Xcode versions on one Mac
- Automating Xcode setup in scripts
- Matching CI to a pinned .xcode-version
- Installing beta or legacy Xcode builds