Right now I have Xcode 6.0 (Beta) as a default version of my Xcode, but today I installed Xcode 6 from App Store and so I want to set Xcode 6 as a default version.
How can I set it?
Go to https://developer.apple.com/download/more to download the older version of Xcode you need and extract the archive. Just make sure to replace Xcode. app with the version you want to use — perhaps sudo xcode-select -s /Applications/Xcode\ 9. app/ instead.
To install XcodeOpen the App Store on the Mac that will be your server, and search for Xcode. Download Xcode from the App Store. After your download is complete, launch Xcode in /Applications or Launchpad. If prompted, enter your administrator account credentials in order to configure Xcode.
We'll use Finder to find out if XCode is installed. In Finder, select the Go pull-down menu, and select Applications. Or just use the short-cut key Command-Shift-A while Finder is active. This should open a new Finder window, showing all the Applications installed on your machine.
You can download old versions of Xcode and install them on the side of the latest one. So you can just choose which version you want to launch depending on your situation. Open https://developer.apple.com/download/more/ and login with your developer account. Then write Xcode in the left column's search bar.
You could set the desired Xcode using this in the terminal:
sudo xcode-select -s <path/to/>Xcode.app
also, for more info, click here
Not directly related, however I assume most of you'd find this useful. Here is a link showing the command line FAQs.
The most 2 useful commands are.
xcode-select --print-path
sudo xcode-select -switch Xcode.app
E.g:
sudo xcode-select -switch /Applications/Xcode5.1.1/Xcode.app
It should be easy.
Solution 1:
Solution 2:
Another way to apply this change to all the similar files is by clicking "Get info" and then making necessary change in 'Open With' section.
In 10.10 you should use (Assuming you've installed few versions of Xcode as Xcode6.1, Xcode6.2 and Xcode6.3, and want to make Xcode6.3 as default one).
sudo xcode-select --switch /Applications/Xcode6.3.app
This comes handy with some 3rd party applications which fails to reset the path from OSX like SVNX.app
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With