nw_coretls_read_one_record tls_handshake_process:[ - 9801]

Kam*_*war 11 iphone xcode objective-c ios

我在最新的iOS版本中面临这个问题,直到最后一个版本它工作正常(甚至按预期运行).

你能否说一下这可能是什么问题?

我添加了plist设置以及预期(如果错误,请更正)

<dict>
<key>NSAppTransportSecurity</key>
<dict>
    <key>NSAllowsArbitraryLoads</key>
    <true/>
    <key>NSExceptionDomains</key>
    <dict>
        <key>mydomain.com</key>
        <dict>
            <key>NSExceptionMinimumTLSVersion</key>
            <string>TLSv1.1</string>
            <key>NSExceptionRequiresForwardSecrecy</key>
            <false/>
        </dict>
  </dict>
Run Code Online (Sandbox Code Playgroud)

我浪费了将近2天的任何帮助将节省我的另一天

Luc*_*aes 3

** 编辑 **

我通过将 TLS 版本从 1.0 更新到 1.2(在我的服务器中)解决了这个问题。在 iOS 10 中,适用的最低 TLS 版本是 1.2。

字体:https://techcrunch.com/2016/06/14/apple-will-require-https-connections-for-ios-apps-by-the-end-of-2016/


同样的问题,iOS 10

我收到以下错误:nw_coretls_read_one_record tls_handshake_process:[-9824]

这是一个 iOS 错误吗?