Localhost and iPhone simulator - tdkehoe/blog GitHub Wiki
To run a local server:
python -m SimpleHTTPServer
Then open your server to:
http://localhost:8000/
Use Spotlight to find and open the iPhone simulator, open Safari, and enter http://localhost:8000/ into the search bar.
You can also plug your iPhone into your Mac, run Safari, and use Web Developer Tools such as the Web Inspector.
Safari can also inspect the iOS Simulator.