錯(cuò)誤描述:
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.
在iOS9 beta中絮记,蘋(píng)果將原h(huán)ttp協(xié)議改成了https協(xié)議贞谓,使用 TLS1.2 SSL加密請(qǐng)求數(shù)據(jù)。
解決方法:
在info.plist 加入key
<key>NSAppTransportSecurity</key><dict><key>NSAllowsArbitraryLoads</key><true/></dict>