paw*_*i92 7 git macos macos-mojave
升级到macOS Mojave后,我尝试从终端运行GIT,但它一直给我以下错误:
xcrun:错误:无效的活动开发人员路径(/ Library/Developer/CommandLineTools),缺少xcrun:/ Library/Developer/CommandLineTools/usr/bin/xcrun.
以前它工作正常.
paw*_*i92 20
打开终端,然后运行以下命令:
xcode-select --install
Run Code Online (Sandbox Code Playgroud)
这将下载并安装xcode开发人员工具并解决问题.问题是需要明确同意许可协议.作为后续步骤,如果您有多个版本或者希望命令行工具在没有Xcode的情况下运行,则可能需要重置Xcode的路径.
xcode-select --switch /Applications/Xcode.app
xcode-select --switch /Library/Developer/CommandLineTools
Run Code Online (Sandbox Code Playgroud)
我也在这个问题中找到了解决方案.
https://apple.stackexchange.com/questions/254380/macos-mojave-invalid-active-developer-path
| 归档时间: |
|
| 查看次数: |
6123 次 |
| 最近记录: |