How can I add NSAppTransportSecurity to my info.plist file?

前端 未结 14 1305
野趣味
野趣味 2020-11-22 12:48

https://developer.apple.com/videos/wwdc/2015/?id=711 @5:55

I can\'t seem to be able to add this to my info.plist. There is no value it. I\'m running XCode Version 7.

14条回答
  •  抹茶落季
    2020-11-22 13:37

    In mac shell command line , use the following command:

    plutil -insert NSAppTransportSecurity -xml " hidden " [location of your xcode project]/Info.plist 
    

    The command will add all the necessary values into your plist file.

提交回复
热议问题