【发布时间】:2016-05-02 18:16:56
【问题描述】:
我在尝试使用 brew 和 git 时遇到了 xcode 问题:
xcrun: error: active developer path ("/Applications/Xcode.app/Contents/Developer") 不存在,使用
xcode-select --switch path/to/Xcode.app指定您希望用于命令行开发工具的Xcode(或参见@ 987654322@)
我可以输入 xcode-select 并显示该命令存在。当我输入xcode-select -p 时,它显示:
/Applications/Xcode.app/Contents/Developer
但是当我做which xcode-select 时,它给了我:
/usr/bin/xcode-select
我尝试使用命令开关并通过 Apple 开发者网站再次安装,但到目前为止这些选项都不起作用......我该如何解决这个问题?
【问题讨论】: