简体   繁体   English

将应用程序提交到Apple Store时有关应用程序图标的警告

[英]Warning about app icons when submitting app to Apple store

Yesterday, I submitted my app to Apple Store successfully, however, I got a warning: 昨天,我已成功将应用程序提交到Apple Store,但是,我收到警告:

"Missing recommended icon file - The bundle does not contain an app icon for iPhone / iPod Touch of exactly '120x120' pixels, in .png format. “缺少推荐的图标文件-该捆绑包不包含.png格式的iPhone / iPod Touch应用图标完全为'120x120'的像素。

Missing recommended icon file - The bundle does not contain an app icon for iPad of exactly '76x76' pixels, in .png format. 缺少推荐的图标文件-该捆绑包不包含.png格式的iPad应用程序图标,其像素恰好为“ 76x76”。

Missing recommended icon file - The bundle does not contain an app icon for iPad of exactly '152x152' pixels, in .png format." 缺少推荐的图标文件-该捆绑包不包含.png格式的iPad应用图标完全为“ 152x152”像素。”

Actually, I do have this kind of icons in my Resources folder, and I added icon names to plist: 实际上,我的Resources文件夹中确实有这种图标,并且我在plist中添加了图标名称:

<key>CFBundleIcons</key>
    <dict>
            <key>CFBundlePrimaryIcon</key>
            <dict>
                    <key>CFBundleIconFiles</key>
                    <array/>
                    <key>Item 0</key>
                    <string>Icon-76.png</string>
                    <key>Item 1</key>
                    <string>Icon-120.png</string>
                    <key>Item 2</key>
                    <string>Icon-152.png</string>
                    <key>Item 3</key>
                    <string>Icon-72.png</string>
                    <key>Item 4</key>
                    <string>Icon-72@2x.png</string>
                    <key>Item 5</key>
                    <string>Icon-Small.png</string>
                    <key>Item 6</key>
                    <string>Icon-Small@2x.png</string>
                    <key>Item 7</key>
                    <string>Icon.png</string>
                    <key>Item 8</key>
                    <string>Icon@2x.png</string>
                    <key>UIPrerenderedIcon</key>
                    <true/>
            </dict>
    </dict>
    <key>CFBundleIdentifier</key>

Could you tell me what the problem here is? 你能告诉我这里的问题是什么吗?

This applies to Xcode 5: 这适用于Xcode 5:

Your "Icon-120.png" should be named "Icon-60@2x.png". 您的“ Icon-120.png”应命名为“ Icon-60@2x.png”。

"Icon-152.png" should be "Icon-76@2x.png". “ Icon-152.png”应为“ Icon-76@2x.png”。

In the plist file you leave off the "@2x" part and also the ".png". 在plist文件中,省略了“ @ 2x”部分以及“ .png”部分。 "Icon-60" and "Icon-60@2x" are both covered by one entry: "Icon-60" “ Icon-60”和“ Icon-60 @ 2x”都包含在一个条目中:“ Icon-60”

iOS figures out which icon to use based on what kind of display it's running on. iOS会根据其运行在哪种显示上来确定使用哪个图标。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM