在启动mac并运行xcode模拟器时,消耗约500MB的Internet数据

问题描述

在过去的4周中,我的观察者在首次启动模拟器时在模拟器上运行Xcode应用程序时,它消耗约500MB的互联网数据。 这不是项目特定的问题。每当我关闭并启动mac并在模拟器打开后立即运行Xcode时,它将消耗相同数量的数据。 谁能帮我这是什么问题?或任何后台服务运行?

Xcode版本:11.6(11E708)

模拟器:13.6

OSX:10.15.6

在每次使用互联网数据时都不必要的帮助我,我必须解决此问题

更新为 xcode 11.7

后,此问题仍然存在

解决方法

感谢@Rado建议使用https://apple.stackexchange.com/
https://apple.stackexchange.com/上发布问题后,我喜欢了答案。

原始答案: Xcode simulator constantly download something

答案:
重命名文件com.apple.nsurlsessiond(不要删除)

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/UserEventPlugins/com.apple。 nsurlsessiond.plugin /

到-com.apple.nsurlsessiond

,还有文件nsurlsessiond(请勿删除)

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/libexec /

-nsurlsessiond

带有admob的应用程序完美运行,并且野生动物园也没问题

,

如果不需要Internet连接即可测试应用程序,则只需禁用网络即可。

,

您可以运行Wireshark并查看其实际功能,或者至少查看其连接位置。

,

我使用了tripmode防火墙,不给模拟器上网,只在你需要的时候给。

工作正常,但是当您忘记关闭它并下次启动模拟器时,您会感觉很糟糕:(