macos – xcode-select -switch不起作用:活动开发人员路径不存在

macos – xcode-select -switch不起作用:活动开发人员路径不存在,第1张

概述我已经安装了 Xcode 5开发人员预览版3.之前我有开发人员预览版2现在,有时在我的终端中我看到错误,例如当我尝试通过选项卡自动完成一些命令时: error: active developer path ("/Applications/Xcode5-DP2.app/Contents/Developer") does not exist, use xcode-select to change 我尝 我已经安装了 Xcode 5开发人员预览版3.之前我有开发人员预览版2现在,有时在我的终端中我看到错误,例如当我尝试通过选项卡自动完成一些命令时:
error: active developer path ("/Applications/Xcode5-DP2.app/Contents/Developer") does not exist,use xcode-select to change

我尝试通过执行命令来更改此目录:

sudo xcode-select -switch /Applications/Xcode5-DP3.app/Contents/Developer

现在xcode有正确的路径,因为命令

sudo xcode-select -print-path

告诉我结果:

/Applications/Xcode5-DP3.app/Contents/Developer

但我仍然在终端看到相同的错误,见附件:https://dzwonsemrish7.cloudfront.net/items/120Z1S0b1Q302w3J453U/Screen%20Shot%202013-07-24%20at%2016.34.23.png?v=45e9961b

解决方法 它发生在我身上一次:xcode-select -print-path确实坚持相同的值并且没有改变.它似乎总是等于DEVELOPER_DIR环境变量.根据xcode-select的联机帮助页:

When DEVELOPER_DIR is set,its value will be used instead of the value
last passed to -switch xcode_path

因此,取消设置DEVELOPER_DIR使xcode-select -switch正常工作.

总结

以上是内存溢出为你收集整理的macos – xcode-select -switch不起作用:活动开发人员路径不存在全部内容,希望文章能够帮你解决macos – xcode-select -switch不起作用:活动开发人员路径不存在所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://www.54852.com/web/1104287.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-28
下一篇2022-05-28

发表评论

登录后才能评论

评论列表(0条)

    保存