Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change the default xcode version that is launched...?

Tags:

xcode

iphone

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?

like image 451
Ankit Srivastava Avatar asked Dec 16 '11 09:12

Ankit Srivastava


People also ask

How do I change the developer path on a Mac?

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.

What does Sudo Xcode-select do?

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.


2 Answers

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.

like image 158
Matt Lacey Avatar answered Nov 10 '22 01:11

Matt Lacey


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.

like image 26
Nishith Shah Avatar answered Nov 09 '22 23:11

Nishith Shah