天天看点

适配iOS9https请求

这里就不说https和http的具体区别了网上一大推

如果不配置的话就有这个错误。网络请求失败。

直入主题:

适配iOS9https请求

如上图:

1在主plist文件下的Information Property List下添加

NSAppTransportSecurity类型为Dictionary

在该目录下在加

NSAllowsArbitraryLoads类型为Boolen Value值为YES

接下来在TARGETS里点击Build Setting搜索bitcode

将Enable Bitcode设为No

适配iOS9https请求

希望可以帮到你

同时也欢迎访问http://www.jianshu.com/users/be0e45643dcf/latest_articles

https://github.com/tubie