我在同一台 Mac 上安装了两个不同的 Xcode 版本(Xcode 4 和 Xcode 5)。 Xcode 4 位于应用程序文件夹中。
因此,每当我从终端构建任何项目时,它自然会使用 Xcode 4 进行编译。有没有办法使用 Xcode 5(位于桌面)从终端构建项目?
我认为命令xcode-select
正是出于这个原因。
Usage: xcode-select [options]
Print or change the path to the active developer directory. This directory
controls which tools are used for the Xcode command line tools (for example,
xcodebuild) as well as the BSD development commands (such as cc and make).
Options:
-h, --help print this help message and exit
-p, --print-path print the path of the active developer directory
-s <path>, --switch <path> set the path for the active developer directory
-v, --version print the xcode-select version
-r, --reset reset to the default command line tools path
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)