前言
由于IOS9用https全面替代http,如果一个工程有涉及http协议的代码,在使用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,如下图所示操作
添加如下代码:
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
完美解决。