Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Opendiff does not start anymore

Today I tried to use opendiff on my MacBook Pro and I got this error.

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.

Do you have any idea why it suddenly start happening and how to fix it?

like image 954
Chris Cinelli Avatar asked Feb 15 '12 20:02

Chris Cinelli


3 Answers

That is because with 4.3 /Developer/ moved to /Applications/Xcode.app/Contents/Developer/

The proper setting for the new path is:

sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer/
like image 134
valexa Avatar answered Oct 04 '22 04:10

valexa


Fixed with:

sudo xcode-select -switch /Developer/

I am still unsure why I stopped working though.

like image 43
Chris Cinelli Avatar answered Oct 04 '22 03:10

Chris Cinelli


sudo xcode-select -switch /Developer/ 

worked for me

-- I use Versions with FileMerge and started seeing the same error code immediately after upgrading to OSX 10.7.3

like image 22
Wade Williams Avatar answered Oct 04 '22 03:10

Wade Williams