在 xcode 中更改我的应用程序图标(OSX 应用程序)
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/10813213/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Change my app's icon in xcode (OSX app)
提问by SajjadZare
I change icon (drag my icon.png to icon place) but when i run my app, in dock doesn't show icon and show default icon
我更改图标(将我的 icon.png 拖到图标位置)但是当我运行我的应用程序时,在 Dock 中不显示图标并显示默认图标
how can i solve this problem
我怎么解决这个问题
回答by Saraswati
did u make change in the plist file set "Icon file" field value as icon.png
您是否在 plist 文件中将“图标文件”字段值更改为 icon.png
Then clean and build the project
然后清理并构建项目
回答by SajjadZare
you should make .icns
and drag it to your project. you can find information about it from below links:
您应该制作.icns
并将其拖到您的项目中。您可以从以下链接中找到有关它的信息:
回答by Nekto
Try to clean (Product -> Clean
) your project and build (Product -> Build
) it again.
尝试清理 ( Product -> Clean
) 您的项目并重新构建 ( Product -> Build
) 它。
Also check that all icon files are listed in plist
of project.
还要检查plist
项目中是否列出了所有图标文件。