add macOS info

command-line tools must be installed to be able to install headers
This commit is contained in:
superpoussin22
2019-08-12 14:23:02 +02:00
committed by GitHub
parent 00dd4fd77a
commit b3a114a805
+2 -1
View File
@@ -29,7 +29,8 @@ if [[ "$unamestr" == 'Darwin' ]]; then
is_installed=$(pkgutil --pkgs=com.apple.pkg.macOS_SDK_headers_for_macOS_${current_macos_version})
if [ -z "$is_installed" ]; then
if [ "$major" -ge "10" ] && [ "$minor" -ge "14" ]; then
echo 'Please install macOS headers.'
echo 'Please install command-line tools and macOS headers.'
echo 'xcode-select --install'
echo "sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_${current_macos_version}.pkg -target /"
exit 1
fi