On Mar 8, 2012, at 12:19 PM, Quinn Taylor 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
Those results seem unusual. I've found, on multiple machines, that using a value of '/Applications/Xcode.app' expands to the full path, like so: # an invalid initial setting $ xcode-select -print-path / $ sudo xcode-select -switch /Applications/Xcode.app $ xcode-select -print-path /Applications/Xcode.app/Contents/Developer I'm using 4.3.1 as well, same xcodebuild revision, on stock 10.7.3. > 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. :-) Since Xcode 4.3, the developer-y tools installed under /usr/bin/ are just shell script shims a few lines long, which use xcode-select to figure out the real locations of the binaries to be invoked. From what I've seen, "/Applications/Xcode.app" is the recommended setting for people who have to fiddle with it at all, which is why your findings are so curious. We're tracking Versions' potential out-of-the-box failure to find FileMerge under Xcode 4.3.x for attention in an upcoming release. On Mar 8, 2012, at 12:14 PM, Hannes Brandstätter-Müller wrote: > It actually depends on the version of Xcode-select. My version is > 2003, which needs the contents/developer added. This was caused by an > incomplete update to 10.7.3. xcode-select version 2003 is intended for use with Xcode 4.2. If you're seeing that with Xcode 4.3.x, I suggest reinstalling the command-line tools, via Xcode's prefs. You'd expect to be on xcode-select version 2307. Thanks, -nat -- Nathaniel Irons Quality Assurer [email protected]
smime.p7s
Description: S/MIME cryptographic signature
