因为有时候你只想直接进入包含 Xcode 项目的文件夹并打开它。
Xcopen 还可以创建新文件,以及创建 playground 和它们的主机工作区。
OVERVIEW:
xcopen <files>... Open files in Xcode.
xcopen docs Open .md and .txt files.
xcopen new Create new files (if they don't exist), open in Xcode.
xcopen xc|ws|pg(w) Open xcodeproj, workspace, or playground.
* Add ios|mac|tvos to create playground.
* Add w (pgw) to create playground in workspace.
xcopen pkg|xpkg Open Package.swift in TextEdit or Xcode.
USAGE: xcopen [<paths> ...] [--background] [--folder] [--open] [--no-open]
ARGUMENTS:
<paths> Files to open. If blank, opens xcworkspace or,if not
found, searches for xcodeproj.
OPTIONS:
-b, -g, --background Open Xcode in the background
-f, -e, --folder Enclose new items in folder
--open/--no-open Open newly created playgrounds/workspaces (default:
true)
-h, --help Show help information.
chmod u+w /usr/local/bin