xcode iOS 模拟器无法上网

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/20733756/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 04:27:44  来源:igfitidea点击:

iOS simulator has no internet access

iosxcodeproxyios7ios-simulator

提问by yonas

After updating to Xcode 5, the iOS simulator doesn't connect - not in Safari or Maps. It throws a "cache access denied" message. Couldn't find anything online that solves it. I'm stumped. Any ideas?

更新到 Xcode 5 后,iOS 模拟器无法连接 - 在 Safari 或 Maps 中无法连接。它会抛出“缓存访问被拒绝”消息。网上找不到可以解决的。我难住了。有任何想法吗?

回答by ThomasReggi

I just had the same problem in iOS Simulator Version 8.1 and this fixed it!

我刚刚在 iOS 模拟器 8.1 版中遇到了同样的问题,这个问题解决了!

From the menu bar-> iOS Simulator-> Reset Content and Settings...

menu bar-> iOS Simulator->Reset Content and Settings...

回答by yonas

The Avast Mac Security app is the culprit here. Launch Avast, go into Preferences > Shield, and disable Web Shield. Then restart the simulator and it will work.

Avast Mac Security 应用程序是这里的罪魁祸首。启动 Avast,进入 Preferences > Shield,然后禁用 Web Shield。然后重启模拟器就可以了。

回答by Robert rCosta

I had the same problem. I solved it restarting iOS Simulator not reseting content and settings.

我有同样的问题。我解决了它重新启动 iOS 模拟器而不是重置内容和设置。