Andy J Buchanan
Andy J Buchanan

Reputation: 1950

Launching desired version of XCode from Finder

My google-fu has failed me, and I guess this may be basic OS X/Xcode knowledge but....

When I double click .xcodeproj files, I'm getting the Beta I have installed launching instead of the stable release - which is the one I actually want.

I have tried changing the launch program in the finder info window, but it always displays as "Xcode" and doesn't seem to accept that there are different versions - even though it offers them to me in the drop down list.

Is there an xcode setting for this?

Thanks.

Upvotes: 1

Views: 102

Answers (1)

Philippe
Philippe

Reputation: 925

The command-line tool xcode-select is what you want:

Usage: xcode-select -print-path
   or: xcode-select -switch <xcode_folder_path>
   or: xcode-select -version
Arguments:
   -print-path                     Prints the path of the current Xcode folder
   -switch <xcode_folder_path>     Sets the path for the current Xcode folder
   -version                        Prints xcode-select version information

You will have to use sudo to actually change it with -switch.

Upvotes: 1

Related Questions