Trying to force update_dyld_shared_cache but having some errors I am trying to force the update of my dyld shared cache using the command

sudo update_dyld_shared_cache -root / -force


But after a while I see a bunch of errors like this, related to spindump:


  update_dyld_shared_cache[719] : Unable to unlink //var/db/spindump/OLDDSC-E2D77243-3FD9-32E5-AE64-3506904D5579: 1 Operation not permitted


How do I fix this?

I am on El Capitan.
What fixed it for me was

update_dyld_shared_cache -debug


This is what you should see

update_dyld_shared_cache: adding root: /System/Library/...
...
...
update_dyld_shared_cache: /var/db/dyld/dyld_shared_cache_i386 is up-to-date
update_dyld_shared_cache: /var/db/dyld/dyld_shared_cache_x86_64 is up-to-date


to be sure it works I run

update_dyld_shared_cache 


a second time