SSLHandshake: Remote host closed connection during handshake You may
need to configure your browser or application to trust the Charles
Root Certificate. See SSL Proxying in the Help menu.@H_301_3@
Xcode控制台报告:@H_301_3@
2015-09-23 11:29:44.173 Citifyd[8352:449043] Error in registration.
Error: Error Domain=NSCocoaErrorDomain Code=3010
“REMOTE_NOTIFICATION_SIMULATOR_NOT_SUPPORTED_NSERROR_DESCRIPTION”
UserInfo={NSLocalizedDescription=REMOTE_NOTIFICATION_SIMULATOR_NOT_SUPPORTED_NSERROR_DESCRIPTION}
2015-09-23 11:29:44.483 Citifyd[8352:449381]
NSURLSession/NSURLConnection HTTP load Failed
(kcfStreamErrorDomainSSL,-9802) 2015-09-23 11:29:44.509
Citifyd[8352:449043] API ERRROR Error Domain=NSURLErrorDomain
Code=-1200 “An SSL error has occurred and a secure connection to the
server cannot be made.”@H_301_3@
Xcode 6在相同的设置下运行良好 – 任何人都有任何想法?@H_301_3@
解决方法
https://forums.developer.apple.com/thread/4988
iOS 9(Xcode 7模拟器运行)对SSL传输有更严格的要求 – 来自上述线程中的用户“Poets”:@H_301_3@
iOS 9 forces connections that are using HTTPS to be TLS 1.2 to avoid
recent vulnerabilities. In iOS 8 even unencrypted HTTP connections
were supported,so that older versions of TLS didn’t make any problems
either. As a workaround,you can add this code snippet to your
Info.plist:@H_301_3@
<key>NSAppTransportSecurity</key> <dict> <key>NSAllowsArbitraryLoads</key> <true/> </dict>
这使Charles能够在使用iOS 9仿真器时向您显示未加密的流量.分发应用后,您可能希望禁用此功能.@H_301_3@