【问题标题】:Xcode simulator constantly download somethingXcode模拟器不断下载东西
【发布时间】:2020-04-02 16:41:46
【问题描述】:

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】:

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

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

到某事-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

【讨论】:

  • 工作,但如果你会找到永久的解决方案,然后在这里通知
  • 临时解决方案工作正常,当我安装 XCode 12 后,它又开始下载了
  • 将nsurlsessiond重命名为-nsurlsessiond是什么意思?
猜你喜欢
  • 1970-01-01
  • 2012-06-14
  • 1970-01-01
  • 1970-01-01
  • 2015-05-17
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2021-03-07
相关资源
最近更新 更多