Xcode7网络请求编译不通过的解决方案

来源:互联网 发布:mentor eda软件 编辑:程序博客网 时间:2024/05/21 12:46

在用Xcode7编译网络请求时所报的信息:

App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app's Info.plist file.
解决方法

在info.plist 中添加一个Dictionary类型的NSAppTransportSecurity,它底下的一个item是Boolean类型的NSAllowsArbitraryLoads.


0 0
原创粉丝点击