3

I'm maintaining an iOS app that's a few targets behind, and when I run the simulator for the code, it launches the app succesfully, but when I attempt to login, the simulator reports it can't get access to wifi.

I was able to get the simulator working when I was using an older version of xcode, but I've recently updated osx to El Capiton, so I can't use that xcode anymore. - I've tried Revert content and settings on the simulator - I'm not behind a proxy. - This did work before when I was using older xcode version - current xcode version: 7.1 - application Deployment target: 7.0

I've been on SO for a little while now, nothing I can find works, I've been through the first page of Google, and I'm not sure what else to do except try to downgrade my mac pro just so i can use old xcode again. Help?

Thanks.

3
  • You could try to update to Xcode 7.1. Commented Oct 23, 2015 at 14:41
  • I'm now up to 7.1, and it makes no difference. Commented Oct 23, 2015 at 15:05
  • 1
    Possible duplicate of iPhone simulator cannot connect to internet Commented Jan 23, 2018 at 22:33

5 Answers 5

8

My pc had access to the internet, but the simulator could not open a website in Safari.

What solved it for me was simply turning off and on the wifi

Sign up to request clarification or add additional context in comments.

Comments

2

This works for me...

Stack Overflow - "iPhone simulator cannot connect to internet "

1.Turn off lan connection;
2.Turn on wifi;
3.Settings > Developer > Allow HTTP Services (turn on);
4.Restart Xcode and simulator.

2 Comments

A link to a solution is welcome, but please ensure your answer is useful without it: add context around the link so your fellow users will have some idea what it is and why it’s there, then quote the most relevant part of the page you're linking to in case the target page is unavailable. Answers that are little more than a link may be deleted.
@MukulKant I did it above the image
1

With the simulator opened try to:

Simulator > Reset Content and Settings

1 Comment

That's one of the things I've tried before I posted.
0

Reseting the simulators content and settings fixed it for me.

Go to the Device menu and select “Erase All Content and Settings”.

Comments

-2

With the simulator opened try to:

Device> Restart

1 Comment

Restart Mac fixed my problem :(

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.