Xcode模拟器不断下载内容

问题描述 投票:3回答:1

Xcode 11.2.1模拟器13.2.2每天通过nsurlsessiond不断下载约450 MB的内容。这是平常的吗?一些日志

% 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 ~ % 
xcode simulator
1个回答
1
投票

基于此thread的临时解决方案:

将文件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

© www.soinside.com 2019 - 2024. All rights reserved.