我在MacBook Pro上安装了xcode 6,beta 7.当我尝试使用运行iOS 8的iOS模拟器,并尝试连接到任何不使用HTTPS的站点时,我得到一个空白页面,指出"Safari无法打开页面因为网络连接丢失"在模拟器中.任何使用HTTPS的页面都可以正常工作.
我已经为这样的问题尝试了各种解决方案,但没有一个能够奏效.这些不同的解决方案包括重新启动Mac,卸载xcode 6并重新安装它,以及这两个链接中提出的所有解决方案:
我正在使用Xcode 4.5,我的iPhone模拟器无法连接到互联网.互联网正在我的所有Mac浏览器上工作,但iPhone模拟器无法连接.我尝试在iPhone模拟器中在Safari中打开一个网页,但没有帮助.
我目前正在构建一个手表应用扩展程序,并希望使用模拟器,因为它比每次构建到我的实际Apple Watch更容易,更快捷.
但是,我遇到了模拟器的问题,由于错误"此连接不是私有",我无法访问任何网站.这通常不会成为问题,除非在我的情况下我需要使用Facebook登录我的iOS,我在那里面临同样的问题.使用时,消息略有不同SFSafariViewController:
Safari cannot open the page because it could not establish a secure connection to the server
Run Code Online (Sandbox Code Playgroud)
我已经在模拟器上查看了Safari设置,看看是否有任何我可以禁用的安全性,但是无法找到任何内容.有什么办法可以解决这个问题吗?
我目前正在使用Xcode 9.1和macOS High Sierra 10.13.1
The Simulator Version 10.0 (SimulatorApp-835.2.1), the Xcode version is 9.1
Seems that all the https connections are evaluated as not trasted, it is affected after the upgrade of Xcode and simulator.
I'm sure that the https connection are with valid certificate also because the same https://support.apple.com get Not trusted problem inside the simulator.
With safari I get some details about "not trusted" site
clicking on
showDetails
and
view the certificated
I already tried to: …