I'm using Xcode 4.5, my iPhone simulator is unable to connect to internet. Internet is working on all my Mac Browsers, but iPhone simulator is unable to connect. I tried opening a web page in Safari in iPhone simulator, but doesn't help.
-
8reset the simulator settings..vishy– vishy2012-11-24 15:40:59 +00:00Commented Nov 24, 2012 at 15:40
-
tried this many times, but I doesn't help either.Afnan– Afnan2012-11-24 15:43:54 +00:00Commented Nov 24, 2012 at 15:43
-
then try by quitting xcode, simulator.. remove both from dock.. restart the machine den restart the xcode run any app.. then use this simulator..vishy– vishy2012-11-24 16:10:46 +00:00Commented Nov 24, 2012 at 16:10
-
2What effect could removing them from the dock after quitting possibly have?jonmorgan– jonmorgan2012-11-24 16:26:00 +00:00Commented Nov 24, 2012 at 16:26
-
I just closed and opened the simulator again. That worked for me!Chris Nolet– Chris Nolet2014-09-23 22:56:28 +00:00Commented Sep 23, 2014 at 22:56
10 Answers
1.Turn off lan connection;
2.Turn on wifi;
3.In the iOS Simulator > Settings > Developer > Allow HTTP Services (turn on);
4.Restart Xcode and simulator.

4 Comments
Network request failed I've tried the above and it didn't help me.I had the same problem with Xcode 6.2 and iOS 8.2 Simulator. The response field was nil. I tried reseting the simulator, cleaning the product in Xcode, restarting both, restarting the Computer, turning wifi off and on and changing for a different wifi network. Nothing worked. Finally I disabled the Avast Antivirus Shields and it worked.
2 Comments
iOS Simulator (menu, top left) > Reset Content and Settings... fixed it for me. Note this will delete all the apps and associated data you have on the simulator.