The resource could not be loaded because the App Transport Security policy requires the use of a secure connection.

新特性要求App内访问的网络必须使用HTTPS协议。

最终找到以下解决办法:

在Info.plist中添加NSAppTransportSecurity类型Dictionary。

在NSAppTransportSecurity下添加NSAllowsArbitraryLoads类型Boolean,值设为YES

你可能感兴趣的:(The resource could not be loaded because the App Transport Security policy requires the use of a secure connection.)