美文网首页
【报错】git指令执行不了,xcrun: error: acti

【报错】git指令执行不了,xcrun: error: acti

作者: 印比八方来 | 来源:发表于2023-09-13 20:37 被阅读0次

一.卸载了Xcode之后,git指令报错

xcrun: error: active developer path ("/Applications/Xcode.app/Contents/Developer") does not exist
Use sudo xcode-select --switch path/to/Xcode.app to specify the Xcode that you wish to use for command line developer tools, or use xcode-select --install to install the standalone command line developer tools.
See man xcode-select for more details.

解决方案:

sudo xcode-select -r

sudo /usr/bin/xcode-select --switch /Library/Developer/CommandLineTools

xcode-select -p

相关文章

网友评论

      本文标题:【报错】git指令执行不了,xcrun: error: acti

      本文链接:https://www.haomeiwen.com/subject/pmbpvdtx.html