macos xcrun
I recently run into this problem, after updating my macOS version to Catalina.
在将macOS版本更新为Catalina之后,我最近遇到了这个问题。
Trying to update Hugo via Homebrew triggered this error:
尝试通过Homebrew更新Hugo触发了此错误:
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
The command was successfully completed, but we don’t want errors, right?
该命令已成功完成,但是我们不希望出现错误,对吗?
Here’s what I did to solve it.
这是我为解决此问题所做的工作。
In the terminal, I ran:
在终端,我跑了:
xcode-select --install
This triggered a dialog box in macOS:
这在macOS中触发了一个对话框:
After clicking Install
and accepting the terms, the download started:
单击Install
并接受条款后,下载开始:
After the installation finished:
安装完成后:
I closed the terminal window and opened a new one.
我关闭了终端窗口,然后打开了一个新窗口。
Problem solved.
问题解决了。
翻译自: https://flaviocopes.com/fix-xcrun-error-invalid-active-developer-path/
macos xcrun