A text-based keyboard editor that will update the iOS Simulator Safari browser?

In text editors such as TextMate, click

COMMAND + R 

save the html document, switch to a browser, such as Chrome, and refresh the page.

So the question is, how do I use this key combination to update the Safari browser in iOS Simulator?

Is there another editor or program that is more interactive when developing for Safari on iOS?

Thank you for your help.

+4
source share
2 answers

by default there is no way to do this, but if you are comfortable working in a shell (for example, Terminal.app), you can see something like this command line tool:

https://github.com/fingertips/ios-sim

not sure if you can run embedded applications like safari, tho.

One thing that can be useful is that in desktop safari, if you turn on the Development menu, you can set up your user agent on iphone / ipod touch / ipad. I'm not sure how accurate this is, but it could be faster for iteration. (if you do not see the "Development" menu in the safari on your desktop, go to settings, select "Advanced" and make sure that the "Show menu in the menu" checkbox is selected)

+2
source

There is no shortcut in the simulator, but if you configured Safari, enable the Safari developer tools (on the desktop), you can use this to debug the simulator. If you have developer tools, the CMD + R shortcut will update the simulator.

Safari> Developer Tools> iPhone Simulator> your application name

Then CMD + R will make you much easier!

+6
source

Source: https://habr.com/ru/post/1387687/


All Articles