How to manually create icns files using iconutil?

前端 未结 18 2032
无人共我
无人共我 2020-11-29 15:08

When I\'m validating my app I get this error:

the application bundle does not contain an icon in ICNS format, containing both a 512x512

18条回答
  •  一生所求
    2020-11-29 15:38

    Checkout the following instructions (link):

    Use iconutil to Create an icns File Manually

    The iconutil command-line tool converts iconset folders to deployment-ready, high-resolution icns files. (You can find complete documentation for this tool by entering man iconutil in Terminal.) Using this tool also compresses the resulting icns file, so there is no need for you to perform additional compression.

    To convert a set of icons to an icns file

    Enter this command into the Terminal window:

    iconutil -c icns

    where is the path to the folder containing the set of icons you want to convert to icns. The output is written to the same location as the iconset file, unless you specify an output file as shown:

    iconutil -c icns -o

    In other words, you need to replace by the path:

    /Users/myname/SDK Mac Apps/MyApp/grafica/icon.iconset
    

    Since the path contains spaces, you need to use double quotes, for example:

    iconutil -c icns "/Users/myname/SDK Mac Apps/MyApp/grafica/icon.iconset"
    

    This command should work properly.

提交回复
热议问题