Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to open specific version of Xcode from terminal?

How do I open a specific version of Xcode from my terminal?

I'm currently using:

open 'App.xcworkspace'/

I have multiple versions of Xcode installed from Xcode 5 to 7 Beta. I want to open the right version for the project straight from the command line without having to click on it from my Applications folder. Is this possible?

Thanks.

like image 522
neverbendeasy Avatar asked Oct 24 '25 03:10

neverbendeasy


1 Answers

Aliasing open -a "Xcode.app" . and open -a "Xcode-beta.app" . work pretty well.

Note that the . trick only works if there's an Xcode project or workspace file in the current directory.

like image 72
Kazmasaurus Avatar answered Oct 26 '25 18:10

Kazmasaurus