Xcode的HTTPS错误

错误信息:

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.

主要是在有第三方SDK在import后,这些SDK基本都是http连接,不符合苹果的HTTPS要求。

解决方法:

1是关闭https验证,2是添加例外。
都是右键打开info.plist,选择open as source code

1.关闭验证,添加代码:

NSAppTransportSecurity

NSAllowsArbitraryLoads


Xcode的HTTPS错误_第1张图片
1.png

2.添加例外,稍微麻烦,而且要知道你的网络连接的域名:
NSAppTransportSecurity

NSExceptionDomains

bmob.com

NSIncludesSubdomains


wtc.edu.cn

NSIncludesSubdomains



你可能感兴趣的:(Xcode的HTTPS错误)