xcode-select –install xcode-select:错误:未知命令选项’–install’

前端之家收集整理的这篇文章主要介绍了xcode-select –install xcode-select:错误:未知命令选项’–install’前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我正在尝试从终端安装 Xcode上的命令行工具.我正在使用Xcode

Version 5.1.1 (5B1008).
I have installed command line tools within Xcode,

enter image description here

现在如果我尝试在终端安装命令行工具我得到这个

怎么解决这个? xcode-select版本2311.I尝试了以下内容

1.my path是/Applications/Xcode.app/Contents/Developer,所以我这样切换了

$sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer.

没有发生任何事情,我找不到相同的错误命令.

我跟着这个链接但没有用xcrun: Error: could not stat active Xcode path ‘/Volumes/Xcode/Xcode45-DP1.app/Contents/Developer’. (No such file or directory)

欢迎任何想法

解决方法

使用最新版本的High Sierra设置新的MacBook Pro时,同样的问题让我感到困惑了一个多小时.

解决方案 – 奇怪的是 – 是:

>复制&粘贴“xcode-select –install”不断失败,但是
>输入相同的命令“xcode-select –install”立即工作.

(其他人可能会理解为什么粘贴一行简单的代码并不会产生与从键盘输入代码相同的结果.)

@H_403_55@

猜你在找的Xcode相关文章