iphone - “缺少推荐的图标文件 - 该 bundle 不包含 .png 格式的 iPhone/iPod Touch 应用程序图标,正好是 '120x120' 像素”

标签 iphone ios ios7 itunes

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

Missing recommended icon file - The bundle does not contain an app icon for iPhone / iPod Touch of exactly '120x120' pixels, in .png format

我该如何解决这个问题?

Here是 Apple 的当前图标要求。

我看不到 120x120 出现在任何地方?这是 iOS 7 特有的吗?我应该包含一个名为 Icon-120.png 还是什么的图标?

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

令我非常惊讶的是,该应用程序在 20 小时后进入审核阶段,并于第二天在市场上发布!有点让我想知道有多少 Apple/Windows 应用审查人员潜伏在这里。

最佳答案

如果从 Xcode9 提交应用程序时出现图标错误,或者如果您在模拟器和设备上看不到应用程序图标,只需更新您的 cocoapods 到你项目中的最新版本。该问题是 Xcode9 中带有 cocoapods 的错误。


iPhoneX 有新指南可以看here .


Here这是一个有用的网站,可为 iOS、Mac 应用程序和 Android 应用程序创建图标。

您只需拖放 1024 x 1024 图标,网站就会创建所有图标尺寸并将其发送到您的电子邮箱。然后按照以下方法为iOS应用设置图标。

Apple 推出 iOS 8、iPhone 6 和 6 Plus 后,应用程序图标大小和启动图像大小发生了变化。请访问我的帖子以获取新尺寸:

Image resolution for new iPhone 6 and 6+, @3x support added?


是的,您需要添加一个 120x120 的高分辨率图标。现在,如果您只想针对 iOS 7,则只需要 76 x 76、120 x 120 和 152 x 152 图标大小。如果您还想针对 iOS 6,则需要 57 x 57、72 x 72、76 x 76、114 x 114、120 x 120、144 x 144 和 152 x 152 图标大小。如果您不希望操作系统插入 Spotlight 和设置图标,则不考虑它们!

Enter image description here

Enter image description here

根据博客文章 New Metrics for iOS 7 App Icons

更新:

根据 Apple 指南 App-icon或者 Icon and Image Sizes :

图标尺寸(iOS 7 及更高版本)

Enter image description here

图标尺寸(iOS 6.1 及更早版本)

Enter image description here

Create different sizes of the app icon for different devices. If you’re creating a universal app, you need to supply app icons in all four sizes.

对于 iPhone 和 iPod touch,需要这两种尺寸:

  • 120 x 120 像素

  • 60 x 60 像素(标准分辨率)

对于 iPad,这两种尺寸都是必需的:

  • 152 x 152

  • 76 x 76 像素(标准分辨率)


现在将其设置到项目中:

  • 创建一个 120 像素的高分辨率图标和 60 像素的常规图标,如 Apple 文档中提到的那样,并设置名称。例如,icon-120.pngicon-152.png

  • 将此图标放入您的项目Resource 文件夹并将此图标添加到项目中:

Enter image description here

  • 在此之后,点击ProjectName-Info.plist 并找到icon files 行。如果找不到,则通过单击(+) 符号添加它并选择图标文件,然后如下设置所有图标图像。

Enter image description here

Enter image description here

现在像我们将应用程序二进制文件提交到 App Store 中那样归档和分发您的项目。 .我希望现在您可以提交您的应用程序而不会出现任何图标问题。


注意:

请注意提供您需要的所有图标。否则您的应用将无法通过 Apple 验证。如果您收到此类电子邮件:

Invalid Image - For iOS applications, icons included in the binary submission must be in the PNG format.

- If your application supports the iPhone device family, you must include square icons of the following dimensions: 57x57 pixels and 120x120 pixels.

- If your application supports the iPad device family, you must include square icons of the following dimensions: 72x72 pixels, 76x76 pixels and 152x152 pixels

Apple is now accepting applications that work on iOS 7 as well, so whatever the Deployment target 6.1 or earlier, but you also need to provide the iOS 7 icon sizes as I mention above (that the store is expecting).

Xcode 5 应用图标管理

如果您使用的是 xCode5 首先要更新的是图标。 Xcode 5 介绍 Asset Catalogs简单地管理图像的多个副本(例如多个分辨率)。我们将创建一个来管理游戏的图标以及启动图像。

enter image description here

现在,单击“使用 Assets 目录”按钮。确认迁移时,系统还会询问您是否要迁移启动图像(这是 iOS 对启动应用程序时出现的初始屏幕的说法)——您需要确保也选中此项。

enter image description here

请查看更多信息Apple doc of Asset Catalogs

关于iphone - “缺少推荐的图标文件 - 该 bundle 不包含 .png 格式的 iPhone/iPod Touch 应用程序图标,正好是 '120x120' 像素”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18736954/

相关文章:

iOS 人脸检测位置

ios - 模拟弹出框的模糊效果时如何为屏幕截图创建蒙版图像

ios - UINavigationController ios7 - NavTab 在 View 前面

iphone - 用 UIView 替换 UINavigationControllers NavigationBar

iphone - 在非当前线程的 IOS 中检索线程名称

ios - CSS 未应用于 iOS 设备

xcode - iOS7 隐藏状态栏但不调整顶部布局指南

javascript - 在 Mobile (iPhone) Safari 中获取视口(viewport)的当前位置

ios - 向 UIView 添加边框不起作用

ios - 像 Lyft 应用程序一样集中放置 ImageView