Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/xcode/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Xcode Opendiff不再启动_Xcode_Versions_Filemerge_Opendiff - Fatal编程技术网

Xcode Opendiff不再启动

Xcode Opendiff不再启动,xcode,versions,filemerge,opendiff,Xcode,Versions,Filemerge,Opendiff,今天我试图在我的MacBookPro上使用opendiff,结果出现了这个错误 xcode-select: Error: No Xcode folder is set. Run xcode-select -switch <xcode_folder_path> to set the path to the Xcode folder. Error: /usr/bin/xcode-select returned unexpected error. xcode选择:错误:未设置xcode文

今天我试图在我的MacBookPro上使用opendiff,结果出现了这个错误

xcode-select: Error: No Xcode folder is set. Run xcode-select -switch <xcode_folder_path> to set the path to the Xcode folder.
Error: /usr/bin/xcode-select returned unexpected error.
xcode选择:错误:未设置xcode文件夹。运行xcode select-switch设置xcode文件夹的路径。
错误:/usr/bin/xcode select返回意外错误。
你知道它为什么突然发生以及如何修复吗?

修复方法:

sudo xcode-select -switch /Developer/

我仍然不确定为什么我停止了工作。

这是因为4.3版
/Developer/
已移至
/Applications/Xcode.app/Contents/Developer/

新路径的正确设置为:

sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer/
为我工作


--我使用带有FileMerge的版本,并在升级到OSX 10.7.3后立即看到相同的错误代码(xCode 4.3.1),但这对我不起作用,但效果很好:sudo xCode select-switch/Applications/xCode.app/Contents/Developer/Thank。这也解决了我的问题。不知道为什么这些答案被否决了。
sudo xcode-select -switch /Developer/