如何停止 Xcode 模拟器耗尽网络数据

Ani*_*ale 6 xcode ios-simulator

每次我打开 Xcode Simulator 时,它都会调用一个名为的活动nsurlsessiond并耗尽我的网络数据。我只是打开模拟器,我什至没有进行任何 api 调用,它仍然会耗尽我的网络数据。

我每天限制 1.5GB

Xcode 版本是版本 11.2.1 (11B53)。

我删除了一些我没有使用的模拟器。

以前模拟器不会像这样消耗数据。谁能告诉我为什么会这样。

在此处输入图片说明

我使用 Wireshark 从 tcpDump 文件中得到了这个输出。 在此处输入图片说明

小智 6

最后我找到了一个临时解决方案!

将文件重命名为 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