I am using iPhone simulator to run a UIWebview, and Safari browser (on my mac) in order to debug the js / html / css code (via "develop" menu -> iPhone Simulator -> choosing my webview).
我正在使用iPhone模拟器运行UIWebview和Safari浏览器(在我的Mac上)以调试js / html / css代码(通过“开发”菜单 - > iPhone模拟器 - >选择我的webview)。
Yestarday, the iPhone-simulator option disappeared from my "develop" menu: (as you can see, the "iphone-simulator" is missing here (it is opened in the background and working...)
Yestarday,iPhone模拟器选项从我的“开发”菜单中消失了:(正如你所看到的,这里缺少“iphone-simulator”(它在后台打开并正在工作......)
Any idea?
Edit: I am using iOS 7 iPhone simulator + Safari 7
编辑:我使用的是iOS 7 iPhone模拟器+ Safari 7
Edit 2: Just tried opening a website on iphone-simulator's Safari browser (in addition to the UIWebview). No luck here as well...
编辑2:刚尝试在iphone-simulator的Safari浏览器上打开一个网站(除了UIWebview)。这里没有运气......
5 个解决方案
#1
16
OK, what eventually worked for me was reseting the simulator (reset content and settings) and restarting my mac...
好吧,最终对我有用的是重置模拟器(重置内容和设置)并重新启动我的mac ...
#2
16
I had exactly the same problem and I could not figure out how to solve it. Then I remembered that I actually have Safari Technology Preview installed on my Mac. And bang. The simulator device is visible in the Develop menu of the Technology Preview version.
我有完全相同的问题,我无法弄清楚如何解决它。然后我记得我实际上在Mac上安装了Safari Technology Preview。并且爆炸。模拟器设备在Technology Preview版本的“开发”菜单中可见。
#3
13
Sometimes it is necessary to restart Safari to make it notice new simulator, unfortunately.
不幸的是,有时需要重新启动Safari以使其注意到新的模拟器。
i0S 11, Safari 11
i0S 11,Safari 11
#4
2
I also faced the same issue. Solution was, closed Safari browser and Simulator and launched again. It fixed my problem. Restarting of my Mac was not required. Hope it will save someone's time.
我也遇到了同样的问题。解决方案是,关闭Safari浏览器和模拟器并再次启动。它解决了我的问题。不需要重新启动我的Mac。希望它能节省一些人的时间。
Environment was as below:
环境如下:
- MacBook Pro OSX version : 10.13.2
- Safari browser version : 11.0.2 (13604.4.7.1.3)
- Simulator : iPhone 8 iOS version 11.2
MacBook Pro OSX版本:10.13.2
Safari浏览器版本:11.0.2(13604.4.7.1.3)
模拟器:iPhone 8 iOS版本11.2
#5
0
Sometimes running your app on different iOS version helps.
有时在不同的iOS版本上运行您的应用有帮助。
#1
16
OK, what eventually worked for me was reseting the simulator (reset content and settings) and restarting my mac...
好吧,最终对我有用的是重置模拟器(重置内容和设置)并重新启动我的mac ...
#2
16
I had exactly the same problem and I could not figure out how to solve it. Then I remembered that I actually have Safari Technology Preview installed on my Mac. And bang. The simulator device is visible in the Develop menu of the Technology Preview version.
我有完全相同的问题,我无法弄清楚如何解决它。然后我记得我实际上在Mac上安装了Safari Technology Preview。并且爆炸。模拟器设备在Technology Preview版本的“开发”菜单中可见。
#3
13
Sometimes it is necessary to restart Safari to make it notice new simulator, unfortunately.
不幸的是,有时需要重新启动Safari以使其注意到新的模拟器。
i0S 11, Safari 11
i0S 11,Safari 11
#4
2
I also faced the same issue. Solution was, closed Safari browser and Simulator and launched again. It fixed my problem. Restarting of my Mac was not required. Hope it will save someone's time.
我也遇到了同样的问题。解决方案是,关闭Safari浏览器和模拟器并再次启动。它解决了我的问题。不需要重新启动我的Mac。希望它能节省一些人的时间。
Environment was as below:
环境如下:
- MacBook Pro OSX version : 10.13.2
- Safari browser version : 11.0.2 (13604.4.7.1.3)
- Simulator : iPhone 8 iOS version 11.2
MacBook Pro OSX版本:10.13.2
Safari浏览器版本:11.0.2(13604.4.7.1.3)
模拟器:iPhone 8 iOS版本11.2
#5
0
Sometimes running your app on different iOS version helps.
有时在不同的iOS版本上运行您的应用有帮助。