xopen
command helps you open your project using Xcode.
most of case you develop Apple Platform Apps,
$ cd <your repository's root directory>
$ xopen
That's it.
xopen
automatically discovers files like Package.swift
, xcworkspace
and .xcodeproj
Breadth-First Search algorithm.
I would pick up some features that I love. If you want to know other options of xopen
, please check xopen --help
or xopen <subcomand> --help
.
xopen
will determine the version of Xcode to use according to the version listed in the .xcode-version
file. If you are developing multiple projects and each project is using a different version of Xcode, you will no longer be using the wrong Xcode version. You can simply run the xopen
command and it will open the project in the appropriate Xcode.
You can open your project using --use
option as well. The arguments of --use
are beta
, latest
and semantic version string.
xopen
has a subcommand called history
which just prints file paths you recently open by xopen
. Do you know how effective this is? When used with a filtering tool like peco, you can easily open the desired project in Xcode with incremental search, no matter where you are in the directory.
xopen
contains x86_64 and arm64 architectures both supports.
brew install griffin-stewie/formulae/xopen-cli
Download release_binary.zip and unzip & put xopen
command wherever you like.