Opendiff does not start anymore
Asked Answered
T

3

5

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?

Tryst answered 15/2, 2012 at 20:23 Comment(0)
D
20

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/
Dermatome answered 19/2, 2012 at 14:38 Comment(0)
T
2

Fixed with:

sudo xcode-select -switch /Developer/

I am still unsure why I stopped working though.

Tryst answered 15/2, 2012 at 20:36 Comment(1)
Thanks. This fixed the issue for me as well. Not sure why these answers were downvoted.Droshky
P
1
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

Parathyroid answered 6/3, 2012 at 15:37 Comment(1)
Did not work for me (xCode 4.3.1), but this worked fine: sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer/Sickening

© 2022 - 2024 — McMap. All rights reserved.