mason icon indicating copy to clipboard operation
mason copied to clipboard

OSX: warn when `MASON_XCODE_ROOT` does not exist

Open springmeyer opened this issue 6 years ago • 1 comments

It looks possible for the value returned by xcode-select -p to not exist. In this case we should stop the build or warn the user of the potential problem.

refs https://github.com/mapbox/mason/blob/6aa9591a336ac71bfa1974185b6ee784a9b6033a/mason.sh#L12

/cc @boblannon I think you hit this.

springmeyer avatar Mar 13 '18 01:03 springmeyer

just to clarify, it wasn't null. it was:

$ xcode-select -p
/Library/Developer/CommandLineTools

...and remained that way even after installing XCode. To get it set correctly, I needed to run this after installing XCode:

sudo xcode-select -s /Applications/Xcode.app/Contents/Developer

boblannon avatar Mar 13 '18 14:03 boblannon