我提交了一个应用程序更新,但我收到了一封电子邮件,告诉我这个错误已经发生:

缺少推荐的图标文件-该包不包含iPhone / iPod Touch的精确的“120x120”像素的应用程序图标,png格式

我该如何解决这个问题?

以下是苹果目前对图标的要求。

我看不到120x120出现在任何地方?这是iOS 7特有的吗?我应该添加一个icon -120.png之类的图标吗?

更新:我添加了三个图标到资源文件夹(Icon-120.png: 120x120, Icon-76.png: 76x76 & Icon-152.png: 152x152),但它没有将它们添加到info.plist。收到了同样的警告邮件。我决定不做任何改变,等着看接下来会发生什么。

令我惊讶的是,这款应用在20个小时后就进入了审查阶段,并在第二天就发布了!这不禁让我好奇,究竟有多少苹果/Windows应用测评人员潜伏在这里。


当前回答

我也有同样的问题。使用Xcode 8.3.3,并希望在资产目录中使用AppIcon。尝试了所有Stack Overflow的答案都没有成功。

最后从Ken/Apple论坛了解到一个深刻的清洁步骤:

removed all icon files, whether from resources (delete - trash) or appicon file (select - remove selected items); removed even assets folder deep cleaned (Use the Product menu w/option key pressed, then choose to 'clean build folder') added a new asset catalogue and called it "Assets" right clicked in Assets folder and added new app icon set - changed that one in inspector to be for iOS >=7 triple checked all my icon files OUTSIDE of Xcode (all were already png files of right resolution, but some had still colour profile attached from photoshop elements or did have indexed colour instead of RGB profile. so I made sure I only save a png file without colour profile and from a background layer) - not sure that was necessary archived the build from Product menu validated and uploaded the build from Window - Organizer

其他回答

你不需要这么复杂。如果你使用的是XCode 5(我相信我们大多数人都是),然后创建你的图标,叫他们任何你喜欢的。

myicon - 58. - png myicon - 57. - png myicon - 72. - png myicon - 80. - png myicon - 100. - png ....

并将它们拖放到AppIcon下的正确框中。见截图。你不需要手动编辑plist文件。

我想再加一个陷阱。即使您做的一切都是正确的,如果您在构建过程中支持多个目标,您也可能会被这个错误所困。

图像资产目录是目标的一部分,即使您在Xcode5中选择它用于目标,也不意味着它会自动添加。

结果,构建工作就像一个魅力,但资产目录没有添加到IPA和AppStore验证失败的错误,即图标缺失。

要修复或检查资产是否是目标的一部分,请在Xcode项目中选择资产条目,并确保在检查器中选中了目标。

这应该被称为警告,而不是错误。至少电子邮件说图标文件是“推荐的”而不是“必需的”。如果你的目标系统是iOS 6,你可以忽略这个警告。当然,对于iOS 7,你需要新的尺寸,也要注意图标的圆角

我也有同样的问题。使用Xcode 8.3.3,并希望在资产目录中使用AppIcon。尝试了所有Stack Overflow的答案都没有成功。

最后从Ken/Apple论坛了解到一个深刻的清洁步骤:

removed all icon files, whether from resources (delete - trash) or appicon file (select - remove selected items); removed even assets folder deep cleaned (Use the Product menu w/option key pressed, then choose to 'clean build folder') added a new asset catalogue and called it "Assets" right clicked in Assets folder and added new app icon set - changed that one in inspector to be for iOS >=7 triple checked all my icon files OUTSIDE of Xcode (all were already png files of right resolution, but some had still colour profile attached from photoshop elements or did have indexed colour instead of RGB profile. so I made sure I only save a png file without colour profile and from a background layer) - not sure that was necessary archived the build from Product menu validated and uploaded the build from Window - Organizer

在我的案例中,它与CocoaPods有关。我花了很多时间去寻找原因,因为一切似乎都是正确的。我在这里找到了https://github.com/CocoaPods/CocoaPods/issues/7003。我只是在构建阶段将“[CP] Copy Pods Resources”和“[CP] Embed Pods Frameworks”移到了“Copy Bundle Resources”上面,错误就消失了。