Created
November 27, 2016 03:53
-
-
Save Limon-O-O/4aac2f52761a5efa59f1522affe649f5 to your computer and use it in GitHub Desktop.
Disables ATS in debug builds
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Disables ATS in debug builds. | |
INFOPLIST="${TARGET_BUILD_DIR}"/"${INFOPLIST_PATH}" | |
case "${CONFIGURATION}" in | |
"Release"|"Adhoc") | |
/usr/libexec/PlistBuddy -c "Set :NSAppTransportSecurity:NSAllowsArbitraryLoads NO" "${INFOPLIST}" | |
;; | |
"Debug") | |
/usr/libexec/PlistBuddy -c "Set :NSAppTransportSecurity:NSAllowsArbitraryLoads YES" "${INFOPLIST}" | |
;; | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment