Project: appceleratorstudio
Issue TISTUD-1196: Add support for new Xcode 4.3 install location
It appears Xcode 4.3 has changed the location of developer tools. In particularly, it's packaged as a single application, with the platforms and command-line tools installed underneath. Homebrew has a function that finds the proper path prefix: https://github.com/mxcl/homebrew/blob/master/Library/Homebrew/utils.rb Note...xcode-select no longer seems to be installed by default, so note that we have to have a fallback here * Check /usr/bin/xcode-select -print-path to see if it exists and is an absolute path. if so, use that * Else check if /Developer exists. If so, use that. * Else check if /Applications/Xcode.app/Contents/Developer exists. If so, use that. * Else ask spotlight where Xcode is (mdfind "kMDItemDisplayName==Xcode&&kMDItemKind==Application). if that succeeds, append /Contents/Developer to that location
Story points: 5