OSX Mojave Disappearing Icons Fixed

Icons on my Macbook Pro running OSX Mojave (10.14.6) started disappearing and being replaced with a generic icon in the Dock, Finder, Applications, task switcher, etc… which is pretty annoying as it makes it hard to determine which icon launches which app.

The standard recommendations of restarting the Dock and Finder did not fix the issue for me, nor did rebuilding the launch services database. Ultimately I needed to clear the icon cache, as well as the former items, and then after waiting a bit (and relaunching the applications) the icons appeared as normal.

find "${HOME}/Library/Application Support/Dock" -name "*-*.db" -maxdepth 1 -delete;
sudo rm -rf /Library/Caches/com.apple.iconservices.store;
sudo find /private/var/folders/ -name com.apple.dock.iconcache -exec rm -rf {} \;;
sudo find /private/var/folders/ -name com.apple.iconservices -exec rm -rf {} \;; 
sudo touch /Applications/*;
defaults write com.apple.dock ResetLaunchPad -bool true;
killall Dock;
killall Finder;

You may also like...

4 Responses

  1. modnarte says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Didn’t work for me

  2. Ruben says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    I have the same problem. What to do with that code?

  3. Ma Kuru says:

    Thanks,
    This works like magic

Leave a Reply

Your email address will not be published. Required fields are marked *