How to use multi Xcode version in macOS

Posted on 08 Nov 2023 03:20

How to use older Xcode versions on new macOS versions

  1. Download Xcodes from github.com/XcodesOrg/XcodesApp

    • Downloading via Xcodes will be faster (up to 16 connections) and can retry when experiencing network errors
  2. Select the Xcode version you want to install and download it, then click active so you can run builds using that selected Xcode version.

Alternatively, instead of following #1 and #2, you can find a download source yourself and select the Xcode version via terminal using the following command:

For example, if your Xcode version is Xcode-14.1.0:

sudo xcode-select -s /Applications/Xcode-14.1.0.app

Because newer macOS blocks opening Xcode directly when opening via app icon, to open Xcode you must run it via terminal using the following command:

/Applications/Xcode-14.1.0.app/Contents/MacOS/Xcode