Skip to content
RentCloudMac

How do you install Xcode on a remote Mac over SSH?

On a Mac you reach through SSH, the App Store window is optional. The xcodes command-line tool installs any Xcode version, and xcodebuild finishes the job.

Updated , by the RentCloudMac team

Quick answer

How do you install Xcode on a remote Mac?

Install Homebrew, then the xcodes tool, run xcodes install --latest, select the version and accept the licence with xcodebuild. On a RentCloudMac Mac mini, from $92 a month and paid in Monero or Bitcoin, you have the administrator rights this needs; the team can also install it through the paid Xcode and Fastlane setup option.

In brief
  • Xcode is not preinstalled on a RentCloudMac Mac: Xcode is not preinstalled: it installs from the Mac App Store or with the xcodes tool, or the team installs it with the Xcode and Fastlane setup option ($79 once).
  • Command-line route: Homebrew, xcodes, then xcodebuild -license accept and -runFirstLaunch.
  • Apple Account: downloading Xcode from Apple needs a sign-in, yours, typed on the Mac; RentCloudMac never asks for it.
  • Runtimes: xcodebuild -downloadPlatform iOS adds the iOS Simulator after the install.
  • Disk: plan room for two Xcode versions plus runtimes; Ship's 512 GB is comfortable, Compile's 256 GB is tight.

Which steps install Xcode from the command line?

  1. Install the Command Line Tools and Homebrew

    Run the Homebrew install script from brew.sh; it installs Apple's Command Line Tools if they are missing.

  2. Install xcodes

    brew install xcodesorg/made/xcodes, plus aria2 for faster parallel downloads.

  3. List and install a version

    xcodes list shows every release; xcodes install --latest takes the newest stable one and asks for your Apple Account and two-factor code.

  4. Select it

    sudo xcodes select with the version, or sudo xcode-select -s pointing to the Xcode app in /Applications.

  5. Accept the licence and finish setup

    sudo xcodebuild -license accept, then xcodebuild -runFirstLaunch to install the extra packages.

  6. Add the iOS platform

    xcodebuild -downloadPlatform iOS downloads the Simulator runtime that matches the selected Xcode.

Terminal on the remote Mac
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
eval "$(/opt/homebrew/bin/brew shellenv)"

brew install xcodesorg/made/xcodes aria2
xcodes list
xcodes install --latest --experimental-unxip
sudo xcodes select   # pick the version you installed

sudo xcodebuild -license accept
xcodebuild -runFirstLaunch
xcodebuild -downloadPlatform iOS
xcodebuild -version

App Store or xcodes: which install is better on a remote Mac?

xcodes is better over SSH because it installs side-by-side versions with predictable names and never needs the desktop. The Mac App Store works too, through Screen Sharing, but it only keeps one Xcode and updates it whenever it likes, which can break a CI runner the night before a release. With xcodes you get /Applications/Xcode-26.1.0.app next to an older version, and you switch with xcodes select.

The Apple Account sign-in happens on the Mac, in your session. RentCloudMac never needs the customer's Apple Account; signing in to one on the Mac, for Xcode or App Store Connect, is the customer's choice. An alternative that avoids typing it on the server is to download the .xip from developer.apple.com on your own computer and copy it over with scp; xcodes install --path then installs from that file.

How much disk does an Xcode setup take?

Typical disk use of an Xcode setup on a remote Mac, rounded orders of magnitude
ItemOrder of sizeWhere it lives
Xcode app (unpacked)Tens of GB/Applications
Each iOS Simulator runtimeSeveral GB/Library/Developer/CoreSimulator
DerivedDataGrows with every project and branch~/Library/Developer/Xcode/DerivedData
ArchivesHundreds of MB per release~/Library/Developer/Xcode/Archives
Downloaded .xip (deletable)Same order as the app~/Downloads or the xcodes cache

Sizes change with each Xcode release; check with du -sh on your own Mac.

How do you keep two Xcode versions without filling the disk?

Keep one current and one previous Xcode, one runtime per major iOS version, and clear DerivedData monthly. xcrun simctl runtime list shows installed runtimes and xcrun simctl runtime delete removes old ones. xcrun simctl delete unavailable cleans Simulators left by removed runtimes.

If you expect three or more versions, pick Release with 1 TB; the sizing logic is explained in how much RAM for Xcode. The wider picture of working this way is on rent a Mac for Xcode.

Should you pay for the Xcode setup option instead?

Pay for it if your time costs more than an evening, or if no one on the team has set up Xcode from a Terminal before. The option is Xcode and Fastlane setup $79 once, CI runner setup $59 once, Priority support $12 a month, Managed Mac +40% of the plan; none is ticked in advance; for Xcode it covers the app, its command-line tools, Simulator runtimes, Homebrew, CocoaPods and Fastlane, tested with a sample build. RentCloudMac counted 23 offers from 7 sellers in its 3 December 2026 study; its own Macs arrive with a clean macOS and no Xcode, so plan either the evening or the option. Next, run the iOS Simulator.

What questions come up when installing Xcode remotely?

Why does xcodes ask for my Apple Account?

Apple serves Xcode downloads only to signed-in developers. The free account is enough to download; publishing needs the paid Developer Program.

The install stops with 'not enough space'. What now?

Unpacking needs room for both the .xip and the app. Delete old runtimes and DerivedData, or download on another machine and install with --path.

Do I have to accept the licence for each version?

Yes, run sudo xcodebuild -license accept after selecting each new version; builds refuse to start otherwise.

Which macOS do I need for the latest Xcode?

Recent Xcode releases need a recent macOS. RentCloudMac installs macOS 26 Tahoe or macOS 15 Sequoia, chosen at checkout and installed clean; a reinstall can be requested from the dashboard; Tahoe runs the newest Xcode.

Can I install Xcode beta versions?

Yes, xcodes list shows betas and release candidates. Keep a stable version selected for release builds.

Verdict
  • Use xcodes over SSH: versioned installs, no desktop needed, scriptable for CI.
  • Accept the licence, run the first-launch step and download the iOS platform before your first build.
  • Choose Ship or Release if you keep more than one Xcode; see pricing.

A Mac ready for Xcode

Ship has room for two Xcode versions and their runtimes. Add the setup option at checkout if you prefer.

Sources (3)
  1. xcodes — XcodesOrg
  2. Downloading and installing additional Xcode components — Apple
  3. Homebrew — Homebrew

Read next

from $92 a month

Rent a Mac