xcopen is a shortcut to open the Xcode workspace or project in the current directory.
xcopen will try to open the .xcworkspace
file of the directory. If one is not found, it will then look for a .xcodeproj
file.
open -a Xcode "My Awesome App.xcworkspace"
xcopen
xcopen can be installed using Homebrew.
brew install macecchi/tap/xcopen
xcopen
That's all you need to open the workspace/project in the current directory. If you want to specify a different directory, just pass it as an argument:
xcopen /path/to/MyAwesomeApp/
You can also use the flag --beta
or simply -b
to open the project using Xcode-beta, if you have it installed:
xcopen --beta /path/to/MyAwesomeApp/
Finally, specifying --default
or -d
will open the project with the default application:
xcopen --beta /path/to/MyAwesomeApp/
This can be useful if your Xcode installations contain a version number (e.g. when using xcode-install), in which case the first two options will not work.
This project is licensed under the terms of the GNU GPL v3 license. See the LICENSE file.