Skip to content

A shortcut to open the Xcode project/workspace from the Terminal by typing xcopen

License

Notifications You must be signed in to change notification settings

macecchi/xcopen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

xcopen

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.

Before xcopen

open -a Xcode "My Awesome App.xcworkspace"

After xcopen

xcopen

Installation

xcopen can be installed using Homebrew.

brew install macecchi/tap/xcopen

Usage

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.

License

This project is licensed under the terms of the GNU GPL v3 license. See the LICENSE file.

About

A shortcut to open the Xcode project/workspace from the Terminal by typing xcopen

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages