添加xcode-select到PATH与安装Xcode命令行工具?

时间:2012-10-03 15:35:47

标签: xcode path .bash-profile command-line-tool

现在使用Xcode 4.5,可以将以下行添加到~/.bash_profile而不是安装Xcode命令行工具吗?

export PATH="$PATH:`xcode-select -print-path`/usr/bin:`xcode-select -print-path`/Toolchains/XcodeDefault.xctoolchain/usr/bin"

注意:Xcode说明了以下关于命令行工具:

  

在安装之前,请注意在终端内您可以使用   XCRUN工具用于启动嵌入式编译器和其他工具   Xcode应用程序。使用XCODE-SELECT工具定义哪个版本   Xcode是活跃的。在终端内键入“man xcrun”以查找   更多。

0 个答案:

没有答案