neverbendeasy
neverbendeasy

Reputation: 988

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.

Upvotes: 4

Views: 1684

Answers (1)

Kazmasaurus
Kazmasaurus

Reputation: 628

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.

Upvotes: 4

Related Questions