# How do I install Xcode from the command line?

> Install full Xcode over SSH with xcodes, accept the licence, run first launch and fetch the iOS platform. Which Xcode fits macOS 26 or 15, per Apple.

- URL: https://remotemacmini.com/guides/how-to-install-xcode-from-the-command-line/
- Last updated: 2026-11-17
- Publisher: RemoteMacMini (https://remotemacmini.com)

**Quick answer — How do I install Xcode from the command line?**

Install Homebrew, then `brew install xcodesorg/made/xcodes` and `xcodes install --latest`, signing in with your Apple Account when asked. Then select it, accept the licence with `sudo xcodebuild -license`, run `xcodebuild -runFirstLaunch` and fetch the iOS platform. On an **RemoteMacMini** Mac ($76.50 a month) Xcode is not preinstalled, so this is step one.

**In brief**

- **Full Xcode**: the open-source `xcodes` tool (MIT licence) downloads and installs any Xcode version.
- **Command Line Tools only**: `xcode-select --install`, but it opens a dialog on the Mac's screen.
- **After install**: `xcode-select -s`, `sudo xcodebuild -license`, `xcodebuild -runFirstLaunch`, `xcodebuild -downloadPlatform iOS`.
- **Pick the version by macOS**: Xcode 26.4.1 to 26.6 need macOS Tahoe 26.2+, Xcode 26.3 runs on Sequoia 15.6+.
- **Disk**: Xcode and its simulator runtimes take a large share of Pip's 256 GB; Graft has 512 GB.

## What are the steps over SSH?

**Seven commands, from the xcodes README, Homebrew, Flutter's iOS setup and Apple's Xcode documentation.**

1. **Install Homebrew** — Run /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)". On Apple silicon it lands in /opt/homebrew.
2. **Install xcodes** — Run brew install xcodesorg/made/xcodes. Add brew install aria2 for faster downloads: xcodes then uses up to 16 connections.
3. **Pick a version** — Run xcodes list, and check the version against the table below for your macOS.
4. **Install Xcode** — Run xcodes install --latest --experimental-unxip, or xcodes install 26.3. Enter your Apple Account and 2FA code when asked, or set XCODES_USERNAME and XCODES_PASSWORD.
5. **Select it and accept the licence** — Run sudo xcode-select -s /Applications/Xcode.app/Contents/Developer (or xcodes select), then sudo xcodebuild -license and accept.
6. **Run first launch** — Run xcodebuild -runFirstLaunch to install required system components, including simctl.
7. **Add the iOS platform** — Run xcodebuild -downloadPlatform iOS for iOS platform support and the latest Simulator runtime.

## Which Xcode runs on macOS 26 Tahoe and macOS 15 Sequoia?

**RemoteMacMini installs macOS 26 Tahoe or 15 Sequoia; the Xcode you can run depends on the exact point release.**

*Recent Xcode versions and the macOS they require, from Apple's Xcode system requirements read 17 November 2026*

| Xcode | Requires | Swift compiler | iOS SDK |
| --- | --- | --- | --- |
| Xcode 27 to 27.2 | macOS Tahoe 26.6 or later | See Apple's table | See Apple's table |
| Xcode 26.6 | macOS Tahoe 26.2 or later | Swift 6.3 | iOS 26.5 |
| Xcode 26.5 | macOS Tahoe 26.2 or later | Swift 6.3 | iOS 26.5 |
| Xcode 26.4.1 | macOS Tahoe 26.2 or later | Swift 6.3 | iOS 26.4 |
| Xcode 26.3 | macOS Sequoia 15.6 or later | Swift 6.2.3 | iOS 26.2 |
| Xcode 16.4 | macOS Sequoia 15.3 or later | — | iOS 18.5 |

## Why not just run xcode-select --install?

**Because it installs only the Command Line Tools, and it opens a dialog.** Apple's page on the tools, read on 17 November 2026, says the command shows a system dialog where you click Install and accept a licence. Over plain SSH nobody sees that dialog; do it through [Screen Sharing](https://remotemacmini.com/guides/how-to-use-screen-sharing-from-windows/ "How do I use Mac Screen Sharing from Windows?") if you need the tools alone.

The tools are the compilers and command-line utilities only. They do not include the Xcode app, its iOS SDK or the Simulator. Apple notes that a full Xcode install includes the tools, so a separate install is not needed afterwards.

## How much disk and memory does Xcode need on a rented Mac?

**More disk than most people expect.** Xcode itself, one iOS Simulator runtime and DerivedData for a mid-size app quickly take a large share of a 256 GB drive. Keep one or two Xcode versions, remove old runtimes, and clear DerivedData now and then.

According to RemoteMacMini's survey of 17 November 2026, a comparable M4 with 24 GB and 512 GB cost $129 a month at MyRemoteMac (excluding tax). RemoteMacMini's Graft costs $116.10. The [RAM guide](https://remotemacmini.com/how-much-ram-for-xcode/ "How much RAM do I need for Xcode?") sizes memory; the [upload guide](https://remotemacmini.com/guides/how-to-upload-an-ios-build-from-a-remote-mac/ "How do I upload an iOS build from a remote Mac?") is the next step after install.

## Installing Xcode from the command line: common questions

### Do I need an Apple Account to install Xcode this way?

Yes. xcodes downloads from Apple's developer site, which asks for an Apple Account and, if set, a 2FA code. RemoteMacMini never needs the customer's Apple Account; signing in to one on the Mac is the customer's choice.

### Can I keep several Xcode versions?

Yes. xcodes installs each version side by side; `xcodes installed` lists them and `xcodes select` switches the active one.

### Is Xcode preinstalled on a RemoteMacMini Mac?

No. Xcode is not preinstalled: it installs from the Mac App Store with an Apple Account, or from developer.apple.com with the xcodes tool.

### Why does xcodes say my macOS is too old?

Each Xcode needs a minimum macOS: Xcode 27 needs Tahoe 26.6, Xcode 26.4.1 and later need Tahoe 26.2. Pick an older Xcode or update macOS.

### How do I add simulator runtimes later?

Run `xcodebuild -downloadPlatform iOS`, or `xcodebuild -downloadAllPlatforms` for every platform the selected Xcode supports.

**Verdict**

- **Use xcodes for full Xcode over SSH**, then licence, first launch and `-downloadPlatform iOS`.
- **Match Xcode to the macOS of your RemoteMacMini Mac** and give it room: Graft's 512 GB suits daily Xcode work.

## Sources

1. [xcodes (README)](https://github.com/XcodesOrg/xcodes) — XcodesOrg (read 2026-11-17)
2. [Homebrew](https://brew.sh/) — Homebrew (read 2026-11-17)
3. [Installing the command-line tools](https://developer.apple.com/documentation/xcode/installing-the-command-line-tools) — Apple Developer (read 2026-11-17)
4. [Downloading and installing additional Xcode components](https://developer.apple.com/documentation/xcode/downloading-and-installing-additional-xcode-components) — Apple Developer (read 2026-11-17)
5. [Xcode system requirements](https://developer.apple.com/xcode/system-requirements/) — Apple Developer (read 2026-11-17)
6. [Set up iOS development](https://docs.flutter.dev/platform-integration/ios/setup) — Flutter (read 2026-11-17)

**A Mac with room for Xcode, $116.10 a month** Graft: Apple M4, 10-core CPU, 10-core GPU, 24 GB, 512 GB SSD. macOS 26 Tahoe or 15 Sequoia. [Rent Graft for 1 month](https://remotemacmini.com/app/checkout/?plan=graft&term=1m&from=guides-how-to-install-xcode-from-the-command-line&lang=en) · [All guides](https://remotemacmini.com/guides/ "Which remote Mac guides does RemoteMacMini publish?")

---

RemoteMacMini: RemoteMacMini rents dedicated Apple Mac minis (M4 and M4 Pro) in data centres for building, signing and testing iOS and macOS apps: one whole Mac per customer, reached over SSH and Screen Sharing. Five plans cost $76.50 to $247.49 a month, each 10% under the lowest comparable offer read on 17 November 2026, paid in crypto with no ID document.
