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

缺少推荐的图标文件-该包不包含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文件。

我也有同样的问题。使用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

添加另一个“相同的症状,但不同的解决方案”的响应,以防有人有相同的问题,但没有一个常用的解决方案有效。

以我为例,我有一款应用在资产目录指导和图标命名惯例的灵活性之前开始开发,但在过渡后首次提交给商店。为了解决这个问题,我不得不:

从Info.plist中删除所有“图标相关”行 对于AppIcons和LaunchImages,切换回“不要使用资产目录” 切换回AppIcons和LaunchImages的资产目录 重新拖放图像文件到适当的位置。

当我在MAC上使用预览应用程序使用应用程序图标图像从180x180大小的图标调整为120x120时,我得到了这个错误。当我从项目中删除120x120图标时,错误已经消失了。调整图标的大小可能会打乱苹果要求的格式。

一个简单的方法是你的应用图标大小为1024 X 1024。只要把它上传到下面的网站,它将生成图标文件夹Add apppicon。Appiconset在您的应用程序。

步骤1:

在以下站点上传现有1024 X 1024图标:

https://makeappicon.com/

第二步:

它会给你发邮件。

从电子邮件下载icon.zip。

步骤3:拖放AppIcon。应用程序的apppiconset。它将包含所有需要图标。

这可能对你们都有帮助。

编辑:我不是这个网站的所有者/发起人。这将节省我们的时间。