Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在编写一个 OSX 应用程序并为其添加了一个图标。
在 Xcode 中构建后,我可以在 Products 文件夹下看到带有图标的应用程序,但是当我右键单击->“在 Finder 中显示”时,构建的文件显示为没有图标。我希望构建的文件有一个图标。
对于 Mac OS 应用程序,您需要创建一个.icns文件并将其包含在Info.plist 中,就像任何其他项目一样。
只需将 icon.png 更改为 icon.icns
当我为我的应用程序提交图标图像时,我从不添加 .icns 扩展名。它由编译器自动假定。所以对于图标文件“icon.icns”,只需输入“icon”即可。