相关疑难解决方法(0)

macOS Mojave Update后,Git无法正常工作(xcrun:错误:无效的活动开发者路径(/ Library/Developer/CommandLineTools)

昨晚(2018年11月)我更新到macOS Mojave,

今天早上我在MacBook pro的Command line中导航到我的工作代码库,

在repo中键入"git status"并收到错误:

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Run Code Online (Sandbox Code Playgroud)

git macos terminal xcode command-line

1190
推荐指数
27
解决办法
35万
查看次数

VS Code C 错误 - 无效的活动开发人员路径

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

这是我在 VS Code 终端中收到的错误。“#include <stdio.h>”行下有错误曲线。

这是我升级到 Mac OS Monterey 后的情况。

出现这个错误的原因是什么以及解决办法是什么?

c xcrun visual-studio-code

7
推荐指数
1
解决办法
8219
查看次数

标签 统计

c ×1

command-line ×1

git ×1

macos ×1

terminal ×1

visual-studio-code ×1

xcode ×1

xcrun ×1