开发者社区> 问答> 正文

采用ATS的默认配置,httpdns 在iOS9平台上报错,在iOS10及以上系统没有问题

采用ATS的默认配置,httpdns 在iOS9平台上报错,在iOS10及以上系统没有问题

httpdns_ios_demo[272:26192] error: Error Domain=NSURLErrorDomain Code=-1022 "The resource could not be loaded because the App Transport Security policy requires the use of a secure connection." UserInfo={NSErrorFailingURLStringKey=http://210.192.117.229/, NSErrorFailingURLKey=http://210.192.117.229/, NSLocalizedDescription=The resource could not be loaded because the App Transport Security policy requires the use of a secure connection., NSUnderlyingError=0x165e36e0 {Error Domain=kCFErrorDomainCFNetwork Code=-1022 "(null)"}}

展开
收起
1001694723371122 2019-04-25 11:39:11 629 0
0 条回答
写回答
取消 提交回答
问答排行榜
最热
最新

相关电子书

更多
手淘iOS性能优化探索 立即下载
From Java/Android to Swift iOS 立即下载
深入剖析iOS性能优化 立即下载