gpt4 book ai didi

xcode - xcrun:错误:事件开发人员路径 ("/Applications/Xcode.app/Contents/Developer")不存在

转载 作者:行者123 更新时间:2023-12-03 04:50:33 24 4
gpt4 key购买 nike

当我尝试使用brew和git时遇到xcode问题:

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

我可以输入 xcode-select,它显示该命令存在。当我输入 xcode-select -p 时,它显示:

/Applications/Xcode.app/Contents/Developer

但是当我执行 which xcode-select 时,它给了我:

/usr/bin/xcode-select

我尝试使用命令开关并通过 Apple 开发者网站再次安装,但到目前为止这些选项都不起作用...我该如何解决此问题?

最佳答案

我尝试过,但没有成功,但我找到了答案。我只需重置开发人员的路径:

$ sudo xcode-select --reset

现在一切正常

关于xcode - xcrun:错误:事件开发人员路径 ("/Applications/Xcode.app/Contents/Developer")不存在,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35009531/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com