5

今天我尝试在我的 MacBook Pro 上使用 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.

你知道为什么它突然开始发生以及如何解决它吗?

4

3 回答 3

20

那是因为随着 4.3/Developer/移动到/Applications/Xcode.app/Contents/Developer/

新路径的正确设置是:

sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer/
于 2012-02-19T14:38:55.410 回答
2

固定:

sudo xcode-select -switch /Developer/

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

于 2012-02-15T20:36:05.187 回答
1
sudo xcode-select -switch /Developer/ 

为我工作

-- 我使用带有 FileMerge 的版本,并在升级到 OSX 10.7.3 后立即开始看到相同的错误代码

于 2012-03-06T15:37:56.177 回答