My xcode-select version is 2307. And following sheree's solution, my xcodebuild still works just fine. I'm not sure why, but it probably has something to do with OS version like Hannes said.
Thanks guys! On Mar 8, 3:19 pm, Quinn Taylor <[email protected]> wrote: > This may work for Versions, but you'll find it breaks other things. For > example, command-line builds: > > $ sudo xcode-select -switch /Applications/Xcode.app > $ xcodebuild -version > error: can't exec '/Applications/Xcode.app/usr/bin/xcodebuild' (No such file > or directory) > > $ sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer > $ xcodebuild -version > Xcode 4.3.1 > Build version 4E1019 > > To be honest, the MOST CORRECT solution is probably to install the Command > Line Tools extra (which go in /usr/*) by going to Xcode preferences, > Downloads section, last item in the Components tab. This will allow Versions' > script to find /usr/bin/opendiff and open FileMerge happily. :-) > > - Quinn > > On Mar 8, 2012, at 11:51 AM, Neakor wrote: > > > > > > > > > That's what I tried initially, with the /Contents/Developer part as > > that's where the FileMerge is located now. However, that does not > > actually work. Sheree's solution, which is without the contents/ > > developer portion worked. > > > On Mar 8, 2:48 pm, Quinn Taylor <[email protected]> wrote: > >> Since everything (except Xcode.app) which was in /Developer has moved > >> inside Xcode.app, it may help to switch your Developer directory location. > >> For example, in Terminal: > > >> $ xcode-select -switch /Applications/Xcode.app/Contents/Developer > > >> If that doesn't help, you can modify the path in > >> Versions.app/Contents/Resources/CompareScripts/FileMerge.sh so it knows > >> where to find it. > > >> - Quinn > > >> On Mar 8, 2012, at 11:27 AM, Neakor wrote: > > >>> Hi, > > >>> I just upgraded to Xcode 4.3.1, and since it moved the FileMerge app's > >>> location to be within the Xcode contents, diff no longer works. > >>> Versions reports can't open FileMerge. > > >>> Please help! > > >>> Thanks, > >>> Yi > > >>> -- > >>> You received this message because you are subscribed to the Google Groups > >>> "Versions" group. > >>> To post to this group, send email to [email protected]. > >>> To unsubscribe from this group, send email to > >>> [email protected]. > >>> For more options, visit this group > >>> athttp://groups.google.com/group/versions?hl=en. > > >> smime.p7s > >> 4KViewDownload > > > -- > > You received this message because you are subscribed to the Google Groups > > "Versions" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]. > > For more options, visit this group > > athttp://groups.google.com/group/versions?hl=en. > > > > smime.p7s > 4KViewDownload -- You received this message because you are subscribed to the Google Groups "Versions" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/versions?hl=en.
