bob*_*vil 42
Carthage使用命令行工具xcodebuild
来构建框架.命令行系统使用的Xcode版本由工具选择的值确定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
--install open a dialog for installation of the command line developer tools
-v, --version print the xcode-select version
-r, --reset reset to the default command line tools path
Run Code Online (Sandbox Code Playgroud)
它需要指向Developer SDK目录,因此您可以使用--print-path
它来检查它当前指向的位置.
xcode-select --print-path
/Applications/Xcode.app/Contents/Developer
Run Code Online (Sandbox Code Playgroud)
然后改变它只是运行 sudo xcode-select --switch <path-to-beta-xcode>/Contents/Developer
归档时间: |
|
查看次数: |
12511 次 |
最近记录: |