Xcode 7, 涉及到了访问http资源,测试时碰到如下报错:
App Transport Security has blocked a cleartext HTTP (http://) resource load since it
is insecure.
解决方法:
打开 工程主目录下info.plist
增加属性字典 App Transport Security Settings
在这个属性下增加节点 Allow Arbitrary Loads, value 为 YES

本文介绍了解决Xcode7中因App Transport Security设置导致无法访问HTTP资源的问题。通过在info.plist文件中添加允许任意加载的配置,可以绕过安全性检查。
757

被折叠的 条评论
为什么被折叠?



