缺少所需的图标文件.该捆绑包不包含正好为“57x57"像素的 iPhone/iPod Touch 应用程序图标 [英] Missing required icon file. The bundle does not contain an app icon for iPhone / iPod Touch of exactly '57x57' pixels

查看:22
本文介绍了缺少所需的图标文件.该捆绑包不包含正好为“57x57"像素的 iPhone/iPod Touch 应用程序图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在 Appstore 中更新我的应用程序,但我已开始收到此失败消息.我在互联网上检查了任何解决方案,但它们都不起作用.我没有更改我的图标,所以这个故障根本不应该出现.

I was trying to update my app in Appstore and I have started to receive this failure message. I checked over the internet for any solution, but none of them work. I have not changed my icons so this failure should not appear at all.

我检查了 plist 文件,但总是同样的问题.该捆绑包理论上缺少两个 57x57 和 72x72 尺寸的图标.

I have checked the plist file, but always the same issue. The bundle is theoretically missing two icons 57x57 and 72x72 sizes.

重命名图标并在项目中设置整个图标包,仍然是同样的问题.

Renamed icons and setup the whole icons package in the project, still the same issue.

推荐答案

我在使用 xCode 5 时遇到了同样的问题 - 所有图标都在那里并且在相应的设备上正确显示,但验证失败.经过一些实验,我发现以下步骤可以解决常见的原因:

I ran into this same problem using xCode 5 - all the icons are there and appear correctly on the corresponding devices, but the validation fails. After some experimentation, I found that the following steps will resolve the common causes:

1) 确保使用正确的文件名

旧版图标需要遵循特定的命名方案(适用于支持 iOS 6.x 及更低版本的应用):

The legacy icons need to follow a specific naming scheme (for apps supporting iOS 6.x and lower):

 57 x  57 --> Icon.png        (iPhone)
114 x 114 --> Icon@2x.png     (iPhone Retina)
 72 x  72 --> Icon-72.png     (iPad)
144 x 144 --> Icon-72@2x.png  (iPad Retina)

请注意,iPad 图标称为 Icon-72.Icon~iPad,过去有效,现在不再有效(至少,对我而言,它会产生与您报告的相同的错误).

Note that iPad icons are called Icon-72. Icon~iPad, which worked in the past, doesn’t work any more (at least, not for me - it generates the same error that you reported).

iOS 7 及更高版本所需的图标命名方案为:

The naming scheme for icons needed in iOS 7 and later is:

120 x 120 --> Icon-60@2x.png  (iPhone Retina)
 76 x  76 --> Icon-76.png     (iPad)
152 x 152 --> Icon-76@2x.png  (iPad Retina)

更新名称的最简单方法是在 xCode 的文件浏览器中单击它们并直接在此处重命名.

The easiest way to update the names is to click on them in the file browser in xCode and rename them directly there.

文件名来源: https://developer.apple.com/library/ios/qa/qa1686/_index.html

2) 检查项目文件是否检测到所有图标

在 xCode 中单击您的项目文件,并确保 App Icons 部分已选择了每个文件.如果没有,请手动选择它们.如果您无法选择图标文件,则可能是尺寸不正确.您可以通过在 Finder 中选择文件并按 CMD-I 获取信息来检查这一点,然后查看更多信息下的尺寸.

Click on your project file in xCode, and make sure the App Icons section has picked up each of the files. If not, manually select them. If you cannot select the icon file, it’s likely that the dimensions aren’t correct. You can check this by selecting the file in Finder, and pressing CMD-I to Get Information, and look at the dimensions under More Information.

3) 确保 plist 包含正确的信息

单击您的 ProjectName-Info.plist 文件,然后检查 CFBundleIcons~ipad/CFBundlePrimaryIcon/CFBundleIconFiles 下的数组.它应该包含 4 个条目:Icon-72Icon-72@2x 和 iOS7 图标的名称.如果有任何额外的条目(例如旧图标文件名),请按 - 按钮将其删除.如果他们留在那里,当找不到相应的文件时,验证将失败.

Click on your ProjectName-Info.plist file, and check the array underCFBundleIcons~ipad/CFBundlePrimaryIcon/CFBundleIconFiles. It should contain 4 entries: Icon-72, Icon-72@2x, and the names of your iOS7 icons. If there are any extra entries (e.g. for the old icon filenames), remove them by pressing the - button. If they stay there, validation will fail when it's unable to find the corresponding files.

尝试上述方法后,您应该清楚 3 个常见问题:文件名不正确、文件丢失和 plist 损坏.祝你好运!

After trying the above, you should be clear of the 3 common problems: incorrect filenames, missing files, and corrupted plist. Good luck!

这篇关于缺少所需的图标文件.该捆绑包不包含正好为“57x57"像素的 iPhone/iPod Touch 应用程序图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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