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

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

I am 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 a project directly from the command line, without clicking on it from the My Applications folder. Is it possible?

Thank.

+3


source to share


1 answer


Antialiasing open -a "Xcode.app" .

and open -a "Xcode-beta.app" .

works very well.



Note that the trick .

only works if there is an Xcode project or workspace file in the current directory.

+2


source







All Articles