iOS 11 Xcode 9不再适用App Transport Security

我一直在开发一个应用程序…因为iOS 11更新禁用ATS不再起作用了我在info.plist中添加了以下内容

NSAppTransportSecurity  NSAllowsArbitraryLoads   

我无法使用域exception密钥,因为我从未知域下载图像。 下面是我尝试下载图像时得到的内容

 Task . HTTP load failed (error code: -1005 [4:-4]) NSURLConnection finished with error - code -1005 

我知道IOS 11不再支持以下内容:

  • RC4 3DES-CBC AES-CBC
  • MD5 SHA-1
  • <2048位RSA发布密钥 - 与服务器的所有TLS连接
  • HTTP://
  • 在SSLv3
  • TLS 1.0
  • TLS 1.1

添加以下内容我们可以绕过ATS(App Transport Security)错误:

 NSAppTransportSecurity  NSExceptionDomains  mydomain.com   NSIncludesSubdomains  NSExceptionRequiresForwardSecrecy     

参考链接: iOS 11 ATS(App Transport Security)不再接受自定义锚证书?