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

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

问题描述

我试图更新我的苹果商店中的应用程序,我已经开始接受这个失败的消息。我检查了在互联网上的任何解决方案,但他们没有工作。因此这种故障不应该出现在所有我没有改变我的图标。

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.

推荐答案

我用x code 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的图标被称为图标-72 图标〜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)

更新名称的最简单方法是在X code中的文件浏览器,点击并将其重命名,直接出现。

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

文件名的来源:的<一个href=\"https://developer.apple.com/library/ios/qa/qa1686/_index.html\">https://developer.apple.com/library/ios/qa/qa1686/_index.html

2)检查项目文件已检测到的所有图标

点击上以x code您的项目文件,并确保应用程序图标部分回升每个文件。如果没有,请手动选择它们。如果你不能选择图标文件,很可能是尺寸不正确。您可以通过选择Finder中的文件进行检查,并pressing 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中有正确的信息

点击你的项目名-Info.plist中文件,在 CFBundleIcons〜的iPad / CFBundlePrimaryIcon / CFBundleIconFiles 。它应该包含4项:图标-72 图标-72 @ 2X ,和你的iOS7图标的名称。按钮 - 如果有任何额外的条目(例如旧的图标文件名),由pressing的删除它们。如果他们呆在那里,验证将当它无法找到相应的文件失败。

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!

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

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