Home/Q&A/Can I install multiple Xcode versions side by side on a rented Mac?

Can I install multiple Xcode versions side by side on a rented Mac?

Updated · airankrush

Direct answer

Yes. Several Xcode versions can live on the same Mac as long as each app has its own name. The limits come from two places: each version only supports certain macOS versions, and disk space.

Basis

  • The customer account is an admin account, so you can install developer tools yourself. The App Store only carries the current release. For any other version, sign in with your Apple Account on the downloads page of the Apple developer site, download the archive, unpack it, rename the app (for example, put the version number in the name) and move it into the Applications folder. Renamed copies do not overwrite each other.
  • In the graphical interface, whichever app you open is the version you are using. Command-line tools (xcodebuild, Flutter, fastlane and so on) use the one currently selected system-wide. Switch it with xcode-select, or set the DEVELOPER_DIR environment variable for a single command. Follow Apple's documentation for the exact syntax.
  • Every Xcode version supports a specific range of macOS versions, which Apple lists in the Xcode version table on its developer support page. If the system on the machine is too new, a very old Xcode may not open; if the system is too old, the latest Xcode will not install.
  • Each Xcode, plus its own simulator runtimes, takes a lot of disk space. Check the free space before keeping two or three versions, and delete simulator runtimes you do not use from the Components pane of Xcode → Settings.

Information as of .

Boundaries: when the answer is different

If the Xcode version you need is not compatible with the macOS version currently on the machine, the answer becomes "not for now". A system upgrade is one of the operations that can break the remote connection, so contact support first and do not upgrade or downgrade the system yourself. The machine's current system version is stated in the delivery notes, and you can check with support before ordering. Also, App Store Connect sets a minimum Xcode and SDK version for uploads, so a build made with an old version may be usable for debugging only, not for submission.

How to do it

  1. Look up the macOS range your target version supports in Apple's Xcode version table and compare it with the system on the machine.
  2. Install the current release from the App Store; download any other version as an archive from the Apple developer site and unpack it.
  3. Rename each app so the name includes its version number, move it into the Applications folder, and open each one once to finish installing components.
  4. In Terminal, run xcode-select -p to see which version the command line points to, and switch if needed.
  5. Run xcodebuild -version or flutter doctor to confirm the build tools see the version you want.

Use case

This question belongs to the use case: iOS without a Mac: a remote Mac mini can build, sign and upload, but not debug on a real device

Other questions in the same use case:

Pricing and availability: see the plans page · Help center (中文) · Refund policy (中文) · Telegram Contact support

Back to home · All Q&A