Application 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.
@H_502_5@
@H_502_5@
编辑 info.plist,加入如下设置:
<plist>
<dict>
....
<key>NSAppTransportSecurity</key>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
</plist>
切记不要添加到test文件夹下的info.plist文件中,很多同仁放过该错误。@H_502_5@ 原文链接:https://www.f2er.com/swift/324100.html