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...
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.
OK, what eventually worked for me was reseting the simulator (reset content and settings) and restarting my mac...
Sometimes it is necessary to restart Safari to make it notice new simulator, unfortunately.
i0S 11, Safari 11
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:
- 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
Sometimes running your app on different iOS version helps.
来源:https://stackoverflow.com/questions/21277562/safari-iphone-simulator-debugging-via-develop-not-showing-anymore