nsurlsessiond constantly downloading

Hi,
im having an issue with xcode 10 simulators,

since i removed xcode 9 and installed xcode 10, when ever i run a simulator it starts a nsurlsessiond and it downloads until i turn of the internet or close the simulator it dosent mater wich devices im using in the simulator, the process always stars and downlaods.

The worst part is that i use limited data per month and if this continues my data will be finished soon.

So i wanted to know what can i do to stop it?

i tryed other people solution to check the icloud, so i checked and i dont use icloud.


Thank you

I have this problem too. Have you find any possible solution?

I too have this problem,nsurlsessiond downloads about 450MB!


this is nsurlsessiond log


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

Here is some more 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 ~ %

Finally i find a temporary solution!


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/

to something -com.apple.nsurlsessiond


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/

to something -nsurlsessiond

Please do not suggest this temporory solution!
If you rename file, xCode will not able open simulator.

I also have the same problem.
An alternative to @vinukn335 temporary solution should be to use a host-based application firewall like Little Snitch to deny the internet access of nsurlsessiond

dropbox.com/s/rf3kzbbhsgre1on/nsurlsessiond-rule.png?dl=0

Te solution proposed by @vinukn335 worked for me. After applying it Xcode was able to open the simulator without problems and the downlading dissapeared.
This bug is still not fixed.
Why is this annoying bug not yet fixed, it lost gigs of data because of this bug
As I mentioned above the best solution for this problem in the mean time is to use a host-based application firewall like Little Snitch or Lulu to deny the internet access of nsurlsessiond. You just need to create a rule to deny internet access for:

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

Check this screenshot to get an idea:
dropbox.com/s/rf3kzbbhsgre1on/nsurlsessiond-rule.png?dl=0
@luis901101 Thank you so much it worked. I have lost nearly 14 GB of internet in this past 3 days and your idea of using Lulu worked. Thank you again

run this command in terminal each boot

while :; do  PROCESS=nsurlsessiond number=$(ps aux | grep -v grep | grep -ci $PROCESS)

if [ $number -gt 0 ]   then echo Your_password | sudo -S pkill -9 pgrep $PROCESS  fi sleep 1; done

I also had the same problem.

The solution...

Just go to settings > software update > Advanced (lower right corner) > turn off "Download when available"

Thats it.

Your problem solved.

You are most welcome. (-:

nsurlsessiond constantly downloading
 
 
Q