Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Safari crashes instantly when trying to debug iPad Simulator app

I realize that this is a long-shot... but I'm looking for tips or advice on how to prevent or debug this issue.

If I start my app in the iPad simulator (webapp using phonegap), then start Safari and select Develope->iPad Simulator->index.html - Safari immediately crashes. The odd thing is that I'm one of several developers working on this app... and we all have seemingly identical setups - yet this doesn't happen for them. They are able to debug in Safari as expected. I should also mention that the app itself works great in the simulator.

Software involved: Xcode 4.6.2 Safari 6.0.5 Running simulator for iPad 6.1

Again, I realize that this isn't much to go on. Hoping someone might be able to point me in the right direction to figure it out.

like image 839
Technologyrocks Avatar asked Jun 05 '13 15:06

Technologyrocks


2 Answers

SOLVED!

On a whim I blew away the directory for the app in: ~/Library/Application Support/iPhone Simulator/6.1/Applications/

and Voila - debugging in Safari works again - doesn't just crash-on-load!

like image 200
Technologyrocks Avatar answered Dec 31 '22 19:12

Technologyrocks


For those people finding this with a more recent version of Mac OS and Xcode/iOS Simulator, this fix worked for me as well:

Mac OS version: 10.12.6
iOS Simulator version: 10.0

  1. Open up iOS Simulator.
  2. On the menu bar go to Hardware > Erase All Content and Settings > Reset.
  3. Restart your Mac

Should be back up and running after that.

like image 39
damdeez Avatar answered Dec 31 '22 18:12

damdeez