Dedicated Mac minis · M4 and M4 Pro · one whole Mac per customer · pay in BTC, USDT, USDC, ETH, SOL, LTC, XMR
Rent a Mac mini

Guide · Xcode · Apple docs read 17 November 2026

How do I install Xcode from the command line?

Last updated: · 4 min read

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
XcodeRequiresSwift compileriOS SDK
Xcode 27 to 27.2macOS Tahoe 26.6 or laterSee Apple's tableSee Apple's table
Xcode 26.6macOS Tahoe 26.2 or laterSwift 6.3iOS 26.5
Xcode 26.5macOS Tahoe 26.2 or laterSwift 6.3iOS 26.5
Xcode 26.4.1macOS Tahoe 26.2 or laterSwift 6.3iOS 26.4
Xcode 26.3macOS Sequoia 15.6 or laterSwift 6.2.3iOS 26.2
Xcode 16.4macOS 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 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 sizes memory; the upload guide 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 (6)
  1. xcodes (README) — XcodesOrg (read 2026-11-17)
  2. Homebrew — Homebrew (read 2026-11-17)
  3. Installing the command-line tools — Apple Developer (read 2026-11-17)
  4. Downloading and installing additional Xcode components — Apple Developer (read 2026-11-17)
  5. Xcode system requirements — Apple Developer (read 2026-11-17)
  6. Set up iOS development — 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.

From $76.50/mo · no KYC

Rent a Mac