Text editor keyboard shortcut that will refresh iOS Simulator's Safari browser? Text editor keyboard shortcut that will refresh iOS Simulator's Safari browser? xcode xcode

Text editor keyboard shortcut that will refresh iOS Simulator's Safari browser?


There's no shortcut within the simulator but if you set up Safari's enable Safari's developer tools (on your desktop) you can use that to debug the simulator. If you have dev tools open, the CMD + R shortcut will refresh the simulator.

Safari > Developer Tools > iPhone Simulator > name of your app

Then CMD + R will make it a lot easier for you!


there is no way to do this by default, but if you're comfortable with working in the shell (e.g. Terminal.app) you could look into something like this command line tool:

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

not sure if you can launch built in apps like safari, tho.

one thing that may be of use is that in desktop safari, if you enable the Develop menu you can set your user agent to be iphone/ipod touch/ipad. i'm not sure how accurate this is, but it might be faster for iterating. (if you don't see the Develop menu in desktop safari, go to preferences, select Advanced and make sure the "Show Develop menu in menu bar" checkbox is checked)