Xcode document icon not updating

那年仲夏 提交于 2020-01-14 01:35:40

问题


I've created an .icns and set it in the Document Types section of my project, but my documents' icons in Finder remain generic. I've noticed that if I change my document type's file extension, the icon displays. Is there a cache I need to clear or some other way to update the icon without changing the file extension?


回答1:


To force refresh icon put this into your terminal

/System/Library/Frameworks/ApplicationServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user; killall Dock

Mavericks:

/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister; killall Dock



来源:https://stackoverflow.com/questions/32260870/xcode-document-icon-not-updating

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!