Skip to content

Instantly share code, notes, and snippets.

@hyuni
Last active November 3, 2019 07:20
Show Gist options
  • Save hyuni/e613cee0abdeafc78f448b2fa8397ec9 to your computer and use it in GitHub Desktop.
Save hyuni/e613cee0abdeafc78f448b2fa8397ec9 to your computer and use it in GitHub Desktop.
bash shell - Xcode 11.1 on High Sierra
#!/bin/bash
array=(`find . -name "Info.plist"`)
for i in "${array[@]}"
do
val=$(/usr/libexec/PlistBuddy -c "print :LSMinimumSystemVersion" "$i" 2>/dev/null || print '0')
if [ "$val" == "10.14" -o "$val" == "10.14.4" -o "$val" == "10.15" ]; then
echo $i
/usr/libexec/PlistBuddy -c "set :LSMinimumSystemVersion 10.13.6" "$i"
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment