I have both xcode 3.2 and 4.0 version installed on my PC but my problem is whenever I open a project, it opens up with xcode 3.2. Although I have the option of opening my project with open with->xcode 4.0 , I want to change the default Xcode to 4.0. Is there any way it can be done?
How do I change the developer path on a Mac? Use xcode-select -switch to choose which version of Xcode you're using by default. On OSX Yosemite use xcode-select –switch path/to/Xcode.
xcode-select controls the location of the developer directory used by xcrun(1), xcodebuild(1), cc(1), and other Xcode and BSD development tools. This also controls the locations that are searched for by man(1) for developer tool manpages.
Use Finder's context menu (i.e. right click on the project) and choose "Get Info"
In the window that pops up is a section titled "Open With" - use that to choose the appropriate version of Xcode, and then use the "Change All" button to specify that it should be used for all projects.
On my machine I renamed Xcode.app
for Xcode 3 to Xcode 3
which makes it easy to distinguish between the two versions.
First right click on the Project whichever you want to open. Now select the openWith option and choose "Other" option.
Now choose the Xcode 4.0 that is installed on your MAC. Select All Application from Enable Menu and also check "Always Open With Option". Then Click OK.
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