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...

8 Responses

  1. Jon says:

    ok, never mind. Restart and all is well.

  2. Jon says:

    All I get is “operation not permitted”

  3. Mario says:

    Good job, thanks a lot it works now.

  4. Yuri says:

    Thank you! saved my day.

  5. modnarte says:

    Didn’t work for me

  6. Ruben says:

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

  7. Ma Kuru says:

    This works like magic

Leave a Reply

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