Xcode模拟器不断下载东西 [英] Xcode simulator constantly download something
问题描述
Xcode 11.2.1 模拟器 13.2.2 每天通过 nsurlsessiond 不断下载大约 450 MB 的东西.这是常态吗?一些日志
Xcode 11.2.1 simulator 13.2.2 constantly download something daily about 450 MB through nsurlsessiond. Is this usual? some logs
% sudo lsof | grep nsurlsessiond
Password:
UserEvent 60 root txt REG 1,4 30016 1152921500312497946 /System/Library/UserEventPlugins/com.apple.nsurlsessiond.plugin/Contents/MacOS/com.apple.nsurlsessiond
nsurlsess 215 _nsurlsessiond cwd DIR 1,4 736 2 /
nsurlsess 215 _nsurlsessiond txt REG 1,4 614448 1152921500312495196 /usr/libexec/nsurlsessiond
nsurlsess 215 _nsurlsessiond txt REG 1,4 28180 23592776 /Library/Preferences/Logging/.plist-cache.99GYDmPS
nsurlsess 215 _nsurlsessiond txt REG 1,4 29062064 1152921500312497147 /usr/share/icu/icudt64l.dat
nsurlsess 215 _nsurlsessiond txt REG 1,4 10833920 23596379 /private/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/0/com.apple.LaunchServices.dv/com.apple.LaunchServices-1080-v2.csstore
nsurlsess 215 _nsurlsessiond txt REG 1,4 1558064 1152921500312496184 /usr/lib/dyld
nsurlsess 215 _nsurlsessiond 0r CHR 3,2 0t0 310 /dev/null
nsurlsess 215 _nsurlsessiond 1u CHR 3,2 0t0 310 /dev/null
nsurlsess 215 _nsurlsessiond 2u CHR 3,2 0t0 310 /dev/null
nsurlsess 215 _nsurlsessiond 3 NPOLICY
nsurlsess 215 _nsurlsessiond 5u systm 0x1ebb302b93b87b91 0t0 [ctl com.apple.netsrc id 7 unit 7]
UserEvent 311 xxxx txt REG 1,4 30016 1152921500312497946 /System/Library/UserEventPlugins/com.apple.nsurlsessiond.plugin/Contents/MacOS/com.apple.nsurlsessiond
nsurlsess 345 xxxx txt REG 1,4 614448 1152921500312495196 /usr/libexec/nsurlsessiond
UserEvent 8964 xxxx txt REG 1,4 29984 23127670 /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
nsurlsess 9001 xxxx txt REG 1,4 761744 23119545 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/libexec/nsurlsessiond
com.apple 9044 xxxx 3w REG 1,4 13597149 23603623 /Users/xxxx/Library/Developer/CoreSimulator/Devices/F0685A70-DEB9-4786-8368-CF98BAC7FD1A/data/Library/Caches/com.apple.nsurlsessiond/Downloads/com.apple.mobileassetd/CFNetworkDownload_O3Y86b.tmp/AssetData/adat
xxxx@xxxx-iMac ~ %
推荐答案
基于此 thread 的临时解决方案:
将文件 com.apple.nsurlsessiond(Dont delete) 重命名为
rename the file com.apple.nsurlsessiond(Dont delete) in
/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/
/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
to something -com.apple.nsurlsessiond
还有文件 nsurlsessiond(Dont delete)
and also the file nsurlsessiond(Dont delete) in
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/libexec/
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/libexec/
到某事 -nsurlsessiond
to something -nsurlsessiond
这篇关于Xcode模拟器不断下载东西的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!