2

I am a web developer and I often need to do testing on i devices. I have a macbook around and I don't know what is the best way to test my web applications on iOS devices. I don't have any physical iPhones or iPads (yet).

Is there any simple & good iOS simulator? I'm interested to debug the JavaScript in Safari, in developer tools.

Is it possible to install the simulator without installing XCode?

How to do that?

2

Without Xcode, there's not really any way to get an iOS simulator that I know of. Alternatively, you could download Xcode and just pull the iOS simulator out of it from the path Xcode.app/Contents/Developer/Applications/Simulator.app.

edit: to run Safari in Debug mode on your virtual iPhone, there are a set of instructions on tutsplus. In essence:

  • open iOS Simulator
  • from the menubar, `Develop > iPhone Simulator > (website name)
  • this should open a side window with Safari Developer Tools
  • Where is the Xcode.app directory located? – Ionică Bizău May 10 '16 at 8:46
  • Usually in /Applications. You'll have to download the application first to extract the Simulator app. – perhapsmaybeharry May 10 '16 at 8:54
  • That's correct. The full path is /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app/Contents/MacOS/Simulator. But how can I open the developer tools in Safari from iPhone? – Ionică Bizău May 10 '16 at 8:55
  • I believe I have misunderstood that you were looking for an iOS simulator that runs Safari. I would think you are looking for Safari's developer tools on an iPhone simulator on a Mac? – perhapsmaybeharry May 10 '16 at 9:23
  • First thing is to get the simulator working (I did that by installing XCode and running the Simulator executable in the terminal), but I'd like to debug Safari in the iPhone simulator, without having a physical device. Is it even possible? – Ionică Bizău May 10 '16 at 9:27

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .