I noticed that some app icons changing sometimes with same blank like icon. Right now Sublime Text icon changed. Couple days ago it was happened on Safari. How can I prevent this? What will can cause this?
Best Answer
Your best bet is to reset and restart the Dock. Note you will need to re-add any non-default icons (i.e. apps) that you've added to the Dock - so you may want to take a screenshot of your Dock as a reminder of what you had there. (Or start afresh and only add things as you actually use them).
To reset and restart the Dock, follow these steps:
Go to Finder
Press and hold the option key down
Now go to the Go menu
Select the Library option to open the User's Library folder. You can let go of the option key now.
Go to the Preferences folder (i.e. within the Library folder)
Find and move the com.apple.dock.plist file to the Trash
Now open Terminal (usually located in Applications > Utilities)
Enter this command killall -KILL Dock
Press enter
This should resolve the issue. As mentioned previously, you will need to re-add non-default apps back to the Dock.
Cheekily adding this as an answer based on a comment above as the commenter didn't include it.
The cause appears to be a mystery, but if you remove the icon from the dock (just drag it away until you get the vanishing smoke animation), and re add the icon (run the app, right click on the dock icon and click Keep, or drag the icon back in from the finder) to get the full resolution icon for any app that is doing this. It's a workaround that doesn't explain the issue, but should be good enough.
I was able to work around this by dragging the folder out of the Dock to remove it, then dragging the folder back from the Finder into the Dock. I'd still love to know if there's something that would fix it in place, but this is working for me now.
Best Answer
Your best bet is to reset and restart the Dock. Note you will need to re-add any non-default icons (i.e. apps) that you've added to the Dock - so you may want to take a screenshot of your Dock as a reminder of what you had there. (Or start afresh and only add things as you actually use them).
To reset and restart the Dock, follow these steps:
killall -KILL Dock
This should resolve the issue. As mentioned previously, you will need to re-add non-default apps back to the Dock.