mirror of
https://github.com/MobSF/Mobile-Security-Framework-MobSF.git
synced 2026-10-11 22:50:09 +00:00
add macOS info
command-line tools must be installed to be able to install headers
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user