


To properly utilize a different version of Xcode, you need to first set the proper DEVELOPER_DIR environment variable to the matching version, and then run the Xcode version in the Applications folder.įor example, the default Xcode ("Xcode.app") in the Applications folder is version 13.0, and a different version of Xcode 12.5 (Xcode12.5.app) is available. To override the default Xcode Active Developer Directory, simply set the environment variable "DEVELOPER_DIR" in the Terminal app to the desirable Xcode version. However, Managed server users may not change the default Xcode active developer directory (we use Xcode version 12.5 as an example here) using the " sudo xcode-select -switch /Applications/Xcode12.5.app" command due to lack of administrator access.

You may wish to override the default Xcode Active Developer Directory so build tools can target a legacy version or non-default version of Xcode.
