xcode选择:未找到命令,尽管

xcode选择:未找到命令,尽管,xcode,Xcode,我正试图让Xcode和命令行开发工具工作,以便使用MacPorts。 我已经安装了Xcode和Xcode命令行开发工具 但当我尝试使用xcode select时,我得到: xcode-select -bash: xcode-select: command not found MacPort认为未安装XCode: sudo port install texlive Warning: Xcode does not appear to be installed; most ports will li

我正试图让Xcode和命令行开发工具工作,以便使用MacPorts。 我已经安装了Xcode和Xcode命令行开发工具

但当我尝试使用xcode select时,我得到:

xcode-select
-bash: xcode-select: command not found
MacPort认为未安装XCode:

sudo port install texlive
Warning: Xcode does not appear to be installed; most ports will likely fail to build.
我的$PATH看起来很正常:

echo $PATH
/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
我在任何地方都找不到xcode select实用程序:

sudo find / -iname xcode-select 
我尝试过从零开始删除并重新安装XCode和命令行工具,并多次重新启动。没有效果。我目前的系统是OSX 10.9.5和XCode 6.0.1

有人能帮忙吗


如果有人遇到此问题,请感谢:

xcode select现在是OSX的一部分,因此如果您没有它,我找到的唯一解决方案就是备份所有内容并重新安装OSX


请参阅我在Apple开发者论坛上收到的帮助:

您也可以在Xcode中更改设置:首选项->位置->命令行工具任务。我刚试过。但当我尝试访问位置时,Xcode会冻结。所有其他设置都有效。重新安装后的行为相同。看起来问题比我想象的要严重。