2012-02-15 37 views
5

今天我試圖在我的MacBook Pro上使用opendiff,並且出現了這個錯誤。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. 

你知道爲什麼它突然開始發生,以及如何解決它?

回答

2

修正了:

sudo xcode-select -switch /Developer/ 

我仍然不清楚爲什麼我停了下來,雖然工作。

+1

謝謝。這也解決了我的問題。不知道爲什麼這些答案是downvoted。 – Bishnu 2012-04-11 04:36:47

20

這是因爲與4.3 /Developer/搬到/Applications/Xcode.app/Contents/Developer/

新路徑正確的設置是:

sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer/ 
1
sudo xcode-select -switch /Developer/ 

工作對我來說

- 我用FileMerge版本並在升級到OSX後立即開始看到相同的錯誤代碼10.7.3

+2

沒有爲我工作(xCode 4.3.1),但這工作得很好:sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer/ – 2012-03-14 17:40:07