Safari - iPhone simulator debugging (via “develop”) not showing anymore

本小妞迷上赌 提交于 2019-12-03 08:40:46

问题


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).

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...)

Any idea?

Edit: I am using iOS 7 iPhone simulator + 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...


回答1:


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.




回答2:


OK, what eventually worked for me was reseting the simulator (reset content and settings) and restarting my mac...




回答3:


Sometimes it is necessary to restart Safari to make it notice new simulator, unfortunately.

i0S 11, Safari 11




回答4:


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.

Environment was as below:

  1. MacBook Pro OSX version : 10.13.2
  2. Safari browser version : 11.0.2 (13604.4.7.1.3)
  3. Simulator : iPhone 8 iOS version 11.2



回答5:


Sometimes running your app on different iOS version helps.



来源:https://stackoverflow.com/questions/21277562/safari-iphone-simulator-debugging-via-develop-not-showing-anymore

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!