Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPhone simulator cannot connect to internet

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.

like image 623
Afnan Avatar asked Nov 24 '12 15:11

Afnan


People also ask

How do I turn off wifi on iPhone simulator?

click on each available network interface in the list at the left of the window in turn, disabling each one. click on the Configure iPv4 menu, and choose Off. for Wi-Fi, just click on the Turn Wi-Fi Off button. click Apply, and this location will block all network activity.

How do you simulate poor network conditions on iOS simulator and iPhone?

iPhone Device. Go to your Settings and go to Developer menu. Like the Network Link Conditioner in macOS, you can choose a desired profile to simulate for example a poor connection (100% Loss), or a 3G connection and so on.

How do I debug Safari in iPhone simulator?

You'll need to go to Settings > Advanced and check the Show Debug Menu option. Then you'll see the option to open the web inspector for the Simulator right from that menu. With the Web Inspector open, you can debug inside the Simulator just like you could right in a desktop browser with DevTools.


1 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.

screenshot

like image 74
Stanislav Ostapenko Avatar answered Sep 19 '22 16:09

Stanislav Ostapenko