How to set Xcode version as default in my Mac?
Solution 1:
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
Solution 2:
It should be easy.
Solution 1:
- Right click(or Control + Click) on Xcode project file (.xcodeproj).
- Hover over 'Open with' and you will find all the Xcode apps from Applications directory listed.
- Now, hold down the Option key so that the “Open With” menu becomes “Always Open With”.
- Continue to hold Option and select the Xcode version you want to set as the default for this file.
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.
Solution 3:
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.
- Printing the version of Xcode currently used by my tools
xcode-select --print-path
- Select the default Xcode for your command-line tools
sudo xcode-select -switch Xcode.app
E.g:
sudo xcode-select -switch /Applications/Xcode5.1.1/Xcode.app
Solution 4:
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
Solution 5:
This works for me I'm using vanilla titanium CLI.
Switch to desired Xcode version followed by ti setup
for ios
sudo xcode-select -switch /path/to/Xcode.app/Contents/Developer/
ti setup ios