{"id":24157,"date":"2019-02-01T21:20:46","date_gmt":"2019-02-02T02:20:46","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=24157"},"modified":"2020-05-18T16:52:36","modified_gmt":"2020-05-18T20:52:36","slug":"clearing-the-icon-services-cache-in-mojave","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2019\/02\/01\/clearing-the-icon-services-cache-in-mojave\/","title":{"rendered":"Clearing the Icon Services Cache in Mojave"},"content":{"rendered":"<p><a href=\"https:\/\/eclecticlight.co\/2019\/01\/30\/why-doesnt-that-documents-icon-display-properly-beyond-quicklook\/\">Howard Oakley<\/a>:<\/p>\n<blockquote cite=\"https:\/\/eclecticlight.co\/2019\/01\/30\/why-doesnt-that-documents-icon-display-properly-beyond-quicklook\/\">\n<p>After all these 35 years, and numerous bug reports, Apple still doesn&rsquo;t provide any tool to rebuild the IconServices cache. You might find that restarting in Safe mode (with the Shift key held down), leaving your Mac a couple of minutes, then restarting back in normal mode, might do the trick, if you&rsquo;re lucky, but as far as I know, that <em>doesn&rsquo;t<\/em> force the IconServices cache to be rebuilt. Neither does resetting the SMC or NVRAM, although sometimes they&rsquo;re recommended.<\/p>\n<p>If all else fails, and you have to force the IconServices cache to be rebuilt, the only way seems to be to delete it at the command line.<\/p>\n<p>[&#8230;]<\/p>\n<p>The command to remove the main store is<\/p>\n<pre>sudo rm -rfv \/Library\/Caches\/com.apple.iconservices.store<\/pre>\n<p>That for the subsidiary data is<\/p>\n<pre>sudo find \/private\/var\/folders\/ \\( -name com.apple.dock.iconcache -or -name com.apple.iconservices \\) -exec rm -rfv {} \\;<\/pre>\n<p>which includes the Dock icon cache too.<\/p>\n<p>Once you have done that, you&rsquo;ll need to restart and give your Mac plenty of time to rebuild the caches.<\/p>\n<\/blockquote>\n<p>Previously: <a href=\"https:\/\/mjtsai.com\/blog\/2015\/01\/19\/clearing-the-icon-services-cache-in-yosemite\/\">Clearing the Icon Services Cache in Yosemite<\/a>.<\/p>\n\n<p id=\"clearing-the-icon-services-cache-in-mojave-update-2020-05-18\">Update (2020-05-18): <a href=\"https:\/\/forums.macrumors.com\/threads\/help-iconservicesagent-is-using-60gb-of-ram-and-100-of-cpu.2073093\/\">Picho13<\/a>:<\/p>\n<blockquote cite=\"https:\/\/forums.macrumors.com\/threads\/help-iconservicesagent-is-using-60gb-of-ram-and-100-of-cpu.2073093\/\"><p>iconservicesagent basically went crazy and used an astonishing 32GB (yes, GB) of physical RAM on my computer, before running out and continuing to use the SSD space via swap memory to keep using RAM until it ran out of space on the SSD.<\/p>\n<\/blockquote>\n<p>Clearing the cache apparently <a href=\"https:\/\/forums.macrumors.com\/threads\/help-iconservicesagent-is-using-60gb-of-ram-and-100-of-cpu.2073093\/page-2?post=28456710#post-28456710\">fixed this<\/a>.<\/p>","protected":false},"excerpt":{"rendered":"<p>Howard Oakley: After all these 35 years, and numerous bug reports, Apple still doesn&rsquo;t provide any tool to rebuild the IconServices cache. You might find that restarting in Safe mode (with the Shift key held down), leaving your Mac a couple of minutes, then restarting back in normal mode, might do the trick, if you&rsquo;re [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"2019-02-02T02:20:49Z","apple_news_api_id":"b63ca53d-f6c2-4e21-ac5c-d5761e008c56","apple_news_api_modified_at":"2020-05-18T20:52:39Z","apple_news_api_revision":"AAAAAAAAAAAAAAAAAAAAAQ==","apple_news_api_share_url":"https:\/\/apple.news\/AtjylPfbCTiGsXNV2HgCMVg","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[2],"tags":[1777,458,545,30,1609],"class_list":["post-24157","post","type-post","status-publish","format-standard","hentry","category-technology","tag-dock","tag-finder","tag-icons","tag-mac","tag-macos-10-14"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/24157","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=24157"}],"version-history":[{"count":2,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/24157\/revisions"}],"predecessor-version":[{"id":28960,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/24157\/revisions\/28960"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=24157"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=24157"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=24157"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}