mason
mason copied to clipboard
OSX: warn when `MASON_XCODE_ROOT` does not exist
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.
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