xcrun: error: invalid active developer path

Mac 更新后, 运行 Python 程序时, 提示

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
1
参考 invalid active developer path 中的回答, 我们运行

xcode-select –install
1
可以解决问题.

如果上面的不能解决, 也可以参考 invalid active developer path 中给出的一些其他方式.

发表评论