use*_*175 6 macos-big-sur apple-silicon apple-m1
我刚刚使用 command 安装了 xcode 命令行工具xcode-select --install。现在,每次我重新启动计算机并写入终端时swift --version,我都会收到以下警告。
我尝试xcode-select使用 xcode-select --switch ~/Applications/Xcode.app 命令更改包。这没有帮助。甚至尝试重新安装 Xcode 命令行工具。这也没有帮助。总是同样的警告。
您能告诉我该怎么做才能避免收到警告吗?
电脑:Apple MacBook Pro 13" M1 (2020)
操作系统:大苏尔 11.1
解决方案可能很简单sudo xcode-select -r
这个命令在 M1 机器上为我解决了这个问题,并避免了尝试陌生人随机的、未记录的想法的风险。似乎值得先尝试一下。
% xcode-select -h
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
[...]
-r, --reset reset to the default command line tools path
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
550 次 |
| 最近记录: |