Wrong (generic) Mac dock application icon [duplicate]

Try running this shell script sudo find /private/var/folders/ -name com.apple.dock.iconcache -exec rm {} \;


  1. Recursively descend the directory tree for /private/var/folders/ path and remove any file named com.apple.dock.iconcache:

    sudo find /private/var/folders/ -name com.apple.dock.iconcache -exec rm {} \;
    
  2. Recursively descend the directory tree for /private/var/folders/ path and remove any file named com.apple.iconservices:

    sudo find /private/var/folders/ -name com.apple.iconservices -exec rm -rf {} \;
    
  3. Kill the dock process:

    killall Dock