Charles报告以下错误:
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.
Xcode控制台报告:
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 @R_403_5138@
(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.”
Xcode 6在相同的设置下运行良好 – 任何人都有任何想法?
解决方法 我基于这个帖子解决了这个问题:https://forums.developer.apple.com/thread/4988
iOS 9(Xcode 7模拟器运行)对SSL传输有更严格的要求 – 来自上述线程中的用户“Poets”:
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:
<key>NSAppTransportSecurity</key> <dict> <key>NSAllowsArbitraryLoads</key> <true/> </dict>
这使Charles能够在使用iOS 9仿真器时向您显示未加密的流量.分发应用后,您可能希望禁用此功能.
总结以上是内存溢出为你收集整理的ios – 如何让Charles在SSL连接上使用Xcode 7?全部内容,希望文章能够帮你解决ios – 如何让Charles在SSL连接上使用Xcode 7?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)