Skip to content

Instantly share code, notes, and snippets.

@knalli
Forked from flpwgr/030_modify_plist.sh
Last active September 17, 2015 16:35
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save knalli/59f1035e356506bc216d to your computer and use it in GitHub Desktop.
Save knalli/59f1035e356506bc216d to your computer and use it in GitHub Desktop.
Cordova Hook for App Transport Security iOS 9
#!/bin/bash
PLIST=platforms/ios/*/*-Info.plist
cat << EOF |
Add :NSAppTransportSecurity dict
Add :NSAppTransportSecurity:NSAllowsArbitraryLoads bool YES
EOF
while read line
do
/usr/libexec/PlistBuddy -c "$line" $PLIST
done
true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment