iPhone simulator cannot connect to internet

前端 未结 8 1991
抹茶落季
抹茶落季 2020-11-30 11:11

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 op

相关标签:
8条回答
  • 2020-11-30 11:23

    I'd this problem many times. Turns out I'd added proxy settings added in Network Preferences for my home network but office network didn't use any proxy. That happen to effect only iPhone Simulator but browsers worked fine with it.

    0 讨论(0)
  • 2020-11-30 11:25

    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.

    0 讨论(0)
  • 2020-11-30 11:29

    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.

    0 讨论(0)
  • 2020-11-30 11:29

    I changed my dns settings and I set it to google dns then it worked. Hopefully it works for you too.

    0 讨论(0)
  • 2020-11-30 11:30

    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

    0 讨论(0)
  • 2020-11-30 11:31

    I was seeing a problem with the same symptoms, running iPhone 6s from the Simulator in OSX Yosemite. Check your version of Xcode. Upgrading from version 6 to 7.0 solved the network issue I was encountering.

    0 讨论(0)
提交回复
热议问题