Xcode 6 Beta iOS 8 Simulator can't access inte

2019-06-14 21:18发布

问题:

Just installed XCode 6 Beta to test my app. The iOS 8 Simulator runs and my app successfully installs but the simulator can't access the internet. I try using safari or maps and there is no network connection. If I run the iOS 7 simulator from XCode 6, it connects to the internet perfectly.

I've tried using the steps in this thread but it didn't change anything. (The steps were more if your app doesn't install but I tried anyway.)

I don't have a firewall or little snitch blocking the simulator.

Any other pointers?

回答1:

I had the same problem. Try to quit the iOS simulator, and then re-build and launch your application. It should work.



回答2:

I saw a lot of posts about re-starting the simulator, resetting the simulator settings, etc. I ended up re-installing X-Code, updating to X-Code 6.1, etc, etc. Still didn't have a connection to the network!

What ended up being the solution is I turned off my antivirus (TrendMicro). I had checked all the anti-virus settings before and didn't see any "block process connection". When I turned the whole thing off it solved the problem though.



回答3:

I had same error with xCode 6.1 and iOS 8 simulator. What worked for me is I went to settings>developer> and switch on "Allow HTTP Services" option.



回答4:

Same problem for avast security on mac, turning of webshield under avast preferences solved it.

Xcode version 7.3.1, ios simulator 8.4



回答5:

Turning off AVAST resolve all errors.



回答6:

I've had the exact same issue. It's bizare but plugging my Macbook in via an ethernet cable seemed to resolve this. I know it's not perfect but it works.



回答7:

I also use XCode 6.1 GM and git the same issue. My scenario was that during development I connected my MacBook to another WLAN. My Macbook was connected to the internet, but the iOS Simulator not. My solution was to just close the iOS simulator and redeploy the app from xcode.



回答8:

Just simply reset the simulator. Quit and Re-run your app your problem will be gone. It works for me.



回答9:

I had a similar scenario with Mac OS X 10.9.5, Xcode 6.2, Cordova 4.3, iOS 8.3 - Everything worked fine on all platforms except ajax/network access was limited on the IOS simulator.

As suggested by by others, going into the Settings on the IOS emulator and changing "Allow HTTP Services" in the developer submenu opened up all network access and ajax queries/processes came to life.

So try that first!



回答10:

The source control I used is Git. So upon resetting all my local changes and getting the latest solved my problem.

So First thing I would do is Stash all your local changes if you need them. Then reset all your local changes and get the latest Now run the tests.

This worked for me. Hopefully works for you as well.