5 votes

Le simulateur Xcode télécharge constamment quelque chose

Le simulateur Xcode 11.2.1 13.2.2 télécharge constamment quelque chose de quotidien d'environ 450 Mo via nsurlsessiond. Est-ce habituel ?

quelques journaux

% 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 ~ % 

c'est le journal de launch_sim

cwd
/
txt
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/libexec/nsurlsessiond
txt
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/dyld_sim
txt
/Users/xxxxxx/Library/Developer/CoreSimulator/Devices/34D7CA2A-2595-4E6F-9622-2252E0BB5A08/data/Library/Preferences/Logging/.plist-cache.ouQB3E7W
txt
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libobjc-trampolines.dylib
txt
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/share/icu/icudt64l.dat
txt
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/IDSSimulatorSupport.framework/IDSSimulatorSupport
txt
/Users/xxxxxx/Library/Developer/CoreSimulator/Devices/34D7CA2A-2595-4E6F-9622-2252E0BB5A08/data/var/db/lsd/com.apple.LaunchServices-1080-v2.csstore
txt
/usr/lib/dyld
txt
/Users/xxxxxx/Library/Developer/CoreSimulator/Caches/dyld/19B88/com.apple.CoreSimulator.SimRuntime.iOS-13-2.17B102/dyld_sim_shared_cache_x86_64
0
/dev/null
1
/dev/null
2
/dev/null
3
->0xe277ad83c16882a9
4
/Users/xxxxxx/Library/Developer/CoreSimulator/Devices/34D7CA2A-2595-4E6F-9622-2252E0BB5A08/data/var/run/memory_warning_simulation
6
[ctl com.apple.netsrc id 8 unit 41]

C'est le journal de simulation :

cwd

/

txt

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

txt

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

txt

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libSystem.B.dylib

txt

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libobjc.A.dylib

txt

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/libcache.dylib

txt

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/libcommonCrypto.dylib

txt

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/libcompiler_rt.dylib

txt

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/libcopyfile.dylib

txt

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/libcorecrypto.dylib

txt

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/libdispatch.dylib

txt

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/libdyld.dylib

txt

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/liblaunch.dylib

txt

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/libmacho.dylib

txt

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/libremovefile.dylib

txt

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/libsystem_asl.dylib

txt

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/libsystem_blocks.dylib

txt

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/libsystem_c.dylib

txt

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/libsystem_configuration.dylib

txt

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/libsystem_containermanager.dylib

txt

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/libsystem_coreservices.dylib

txt

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/libsystem_darwin.dylib

txt

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/libsystem_dnssd.dylib

txt

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/libsystem_featureflags.dylib

txt

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/libsystem_info.dylib

txt

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/libsystem_m.dylib

txt

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/libsystem_malloc.dylib

txt

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/libsystem_notify.dylib

txt

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/libsystem_sandbox.dylib

txt

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/libsystem_sim_kernel.dylib

txt

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/libsystem_sim_platform.dylib

txt

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/libsystem_sim_pthread.dylib

txt

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/libsystem_trace.dylib

txt

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/libunwind.dylib

txt

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/libxpc.dylib

txt

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/libsystem_sim_pthread_host.dylib

txt

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/libsystem_sim_platform_host.dylib

txt

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/libsystem_sim_kernel_host.dylib

txt

/usr/lib/system/libsystem_kernel.dylib

txt

/usr/lib/system/libsystem_platform.dylib

txt

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libc++abi.dylib

txt

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libc++.1.dylib

txt

/usr/lib/system/libsystem_pthread.dylib

txt

/usr/lib/dyld

0

/dev/null

1

/dev/null

2

/private/tmp/com.apple.CoreSimulator.SimDevice.34D7CA2A-2595-4E6F-9622-2252E0BB5A08/launchd.log

3

[ctl com.apple.netsrc id 8 unit 38]

4

->0xe277ad83b83d2d29

5

/tmp/com.apple.CoreSimulator.SimDevice.34D7CA2A-2595-4E6F-9622-2252E0BB5A08/syslogsock

6

/private/tmp/com.apple.CoreSimulator.SimDevice.34D7CA2A-2595-4E6F-9622-2252E0BB5A08/launches.2019-12-10.20.17.19.log

7

/private/tmp/com.apple.launchd.ylqXwtBNy6/com.apple.webinspectord_sim.socket

8

/private/tmp/com.apple.launchd.ylqXwtBNy6/com.apple.webinspectord_sim.socket

9

/private/tmp/com.apple.launchd.5cVa6VutSZ/Listeners

10

/private/tmp/com.apple.launchd.26mpQitX06/com.apple.testmanagerd.unix-domain.socket

11

/private/tmp/com.apple.launchd.5cVa6VutSZ/Listeners

12

/private/tmp/com.apple.launchd.GjbwCBAvpU/com.apple.testmanagerd.remote-automation.unix-domain.socket

13

/private/tmp/com.apple.launchd.26mpQitX06/com.apple.testmanagerd.unix-domain.socket

14

/dev/null

15

/private/tmp/com.apple.launchd.GjbwCBAvpU/com.apple.testmanagerd.remote-automation.unix-domain.socket

16

17

/dev/null

J'ai enfin trouvé une solution temporaire !

renommer le fichier com.apple.nsurlsessiond(Dont la suppression est interdite) en

/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/

à quelque chose -com.apple.nsurlsessiond

et aussi le fichier nsurlsessiond(Ne pas supprimer) dans

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

à quelque chose -nsurlsessiond

Les applications avec admob fonctionnent parfaitement et aucun problème avec Safari.

2voto

awy Points 500

Bien qu'il y ait une réponse dans la question elle-même, (renommer l'interface interne de Xcode

/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/

binaire/ plugin), un autre moyen de résoudre ce problème est le pare-feu.

Dans les préférences système > confidentialité > pare-feu, ajoutez Xcode à la liste et bloquez toutes les connexions.

Si cela ne l'arrête pas, téléchargez un pare-feu (comme Little Snitch, LuLu) et bloquez davantage de processus.


Le volet "Simulateurs" de préférences des composants montre une entrée pour chaque simulateur optionnel. d'exécution. Lorsqu'un simulateur optionnel est disponible mais non installé sur votre votre système, Xcode affiche un bouton Télécharger à côté de ce simulateur. d'exécution. Xcode peut également être configuré pour conserver automatiquement vos simulateur installé à jour.

Téléchargez et installez un runtime de simulateur : Cliquez sur le bouton Télécharger () à côté d'un runtime de simulateur.

Vérifier les mises à jour de l'exécution du simulateur : Cliquez sur "Vérifier et installer maintenant".

Installer automatiquement les mises à jour du simulateur : Sélectionnez l'option "Check for and et installer automatiquement les mises à jour du simulateur".

https://help.apple.com/xcode/mac/10.2/index.html?localePath=en.lproj#/deva7379ae35

enter image description here

LesApples.com

LesApples est une communauté de Apple où vous pouvez résoudre vos problèmes et vos doutes. Vous pouvez consulter les questions des autres utilisateurs d'appareils Apple, poser vos propres questions ou résoudre celles des autres.

Powered by:

X