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 withxcode-select, or set theDEVELOPER_DIRenvironment 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.
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
- Look up the macOS range your target version supports in Apple's Xcode version table and compare it with the system on the machine.
- Install the current release from the App Store; download any other version as an archive from the Apple developer site and unpack it.
- 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.
- In Terminal, run
xcode-select -pto see which version the command line points to, and switch if needed. - Run
xcodebuild -versionorflutter doctorto confirm the build tools see the version you want.
Related questions
- Can I install Xcode beta on a remote Mac to test my app against the next iOS?
- Can a rented remote Mac run the iOS Simulator?
- How do I build an iOS ipa for a Flutter app developed on Windows?
- Can I install Node, Homebrew and Docker on a rented Mac mini myself?
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:
- Can I send TestFlight builds from a rented Mac if I don't own a Mac?
- I already have an .ipa. Can I just upload it with Transporter on a remote Mac?
- Do CocoaPods and Swift Package Manager work on a rented Mac?
- Can I sign and notarize a macOS app on a remote Mac if I don't own one?
Pricing and availability: see the plans page · Help center (中文) · Refund policy (中文) · Telegram Contact support