Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save pablocattaneo/a69845a64e990f2d3d94b4d85e85a0e8 to your computer and use it in GitHub Desktop.
Save pablocattaneo/a69845a64e990f2d3d94b4d85e85a0e8 to your computer and use it in GitHub Desktop.
Source: https://chatgpt.com/share/67ec3d1a-af94-8006-b218-af5a02c59418
Yes, you can have multiple versions of Xcode installed on your Mac and choose which one to use.
### **How to Install Multiple Versions of Xcode**
1. **Download the Xcode Versions**
- You can download older versions from Apple's [Developer Downloads](https://developer.apple.com/download/all/).
- The latest versions are available in the App Store.
2. **Install and Rename**
- After downloading, move the older version (`Xcode_16.2.xip`) to `/Applications` and extract it.
- Rename it to `Xcode-16.2.app` to avoid conflicts.
3. **Switch Between Versions**
- To change the default Xcode version for terminal commands like `xcodebuild`, use:
```sh
sudo xcode-select -s /Applications/Xcode-16.2.app
```
- Check the active version with:
```sh
xcode-select -p
```
4. **Using a Specific Xcode Version for a Project**
- In **Xcode**, you can set the preferred version per project:
**Preferences > Locations > Command Line Tools** and select the desired version.
Let me know if you need help! 🚀
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment