MacOS – Dock icon not refreshing when icns file is changed on Yosemite

dockiconmacos

I'm experiencing an issue where the Dock won't reload an icon I changed for one of my applications. I changed the icon by replacing the .icns file within the application package. The version I replaced it with is currently still there, but even after rebooting and killing the dock process multiple times, the old icon won't budge.

Strangely enough, I managed to change the icon for another app with no issue, following the same procedure and rebooting.

Are there any new gotchas with the way this works change in Yosemite? How can this be achieved?

Best Answer

Try to delete the icon cache:

rm /var/folders/*/*/*/com.apple.dock.iconcache; killall Dock