如何使图标的内置应用程序? [英] How to make built app with icon?

查看:98
本文介绍了如何使图标的内置应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在写一个OSX应用程序,并为它添加了一个图标。

I'm writing an OSX App and added an icon for it.

在Xcode中构建之后,我可以在Products文件夹下看到该应用程序,我右键单击 - >'在Finder中显示',建成的文件显示没有图标。

After building in Xcode, I can see the app with icon under Products folder, but when I RightClick->'Show in Finder', the built file is shown without icon. I want the built file to have an icon.

推荐答案

对于Mac OS应用程序,您需要创建一个 .icns 文件,并将其包含在 Info.plist 中。

For Mac OS applications, you need to create an .icns file and include it in your Info.plist just like any other project.

这篇关于如何使图标的内置应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆