xcode 如何修复错误 ITMS-90032:“无效的图像路径 - 在键‘CFBundleIcons’下引用的路径中找不到图像:‘AppIcon60x60’”?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/36811393/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 08:45:23  来源:igfitidea点击:

How to fix ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIcons': 'AppIcon60x60'"?

iosxcode

提问by Kos2008

I made an application and when I try to submit I got an error. The error is ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIcons': 'AppIcon60x60'".

我提交了申请,但当我尝试提交时出现错误。错误是ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIcons': 'AppIcon60x60'"

I also did this in my Info.plist: enter image description here

我也在我的Info.plist在此处输入图片说明

Here are my xcassetsenter image description here

这是我的 xcassets在此处输入图片说明

I don't know why it's not working. And if I remove icons from Supporting Filesand from Info.plist, and try to submit it is showing these two errors:

我不知道为什么它不起作用。如果我从Supporting Files和 从 中删除图标Info.plist,并尝试提交它会显示以下两个错误:

ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIcons': 'AppIcon60x60'"

ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIcons': 'AppIcon60x60'"

ERROR ITMS-90022: "Missing required icon file. The bundle does not contain an app icon for iPhone / iPod Touch of exactly '120x120' pixels, in .png format for iOS versions >= 7.0."

ERROR ITMS-90022: "Missing required icon file. The bundle does not contain an app icon for iPhone / iPod Touch of exactly '120x120' pixels, in .png format for iOS versions >= 7.0."

回答by Daniel Storm

Once you've removed all the info.plisticon stuff you've added, mainly CFBundleIcons, and removed the icon files outside of the xcasset, under your Supporting FilesGroup, select the xcassetfor your app icons under your project's settings.

一旦您删除了info.plist您添加的所有图标内容,主要是CFBundleIcons,并删除了 之外的图标文件xcasset,在您的支持文件组下,xcasset在您的项目设置下为您的应用程序图标选择。

For example: enter image description here

例如: 在此处输入图片说明

Once you've done that you need to address this issue:

完成后,您需要解决此问题:

ERROR ITMS-90022: "Missing required icon file. The bundle does not contain an app icon for iPhone / iPod Touch of exactly '120x120' pixels, in .png format for iOS versions >= 7.0."

错误 ITMS-90022:“缺少所需的图标文件。该捆绑包不包含适用于 iPhone/iPod Touch 的应用程序图标,其像素正好为“120x120”,适用于 iOS 版本 >= 7.0 的 .png 格式。”

Check that the icons dimensions are exactly 120x120 and the icon is indeed in PNGformat. You may have saved it as a JPG, or another file format, with a PNGextension.

检查图标尺寸是否正好为 120x120 并且图标确实是PNG格式。您可能已将其保存为JPG. 或另一种文件格式,并带有PNG扩展名。

回答by Tung Fam

Had the same issue.

有同样的问题。

Solvedby creating new Assets and creating new app icon in there and using it instead of the one in initially created assets.

通过创建新资产并在其中创建新应用程序图标并使用它而不是最初创建的资产中的图标来解决

How to create new assets: go to your Target > General Tab > Scroll down to "App icons..." enter image description here

如何创建新资产:转到您的目标 > 常规选项卡 > 向下滚动到“应用程序图标...” 在此处输入图片说明

Then click to some random class file (so that the current screen will be closed and reloaded). Then go back to this page (where you just clicked "don't use asset catalogs"). Then you will see the button "use assets" > click it > create new assets > will create new assets > create new app icon > add icons > again in App Icons setting > choose the right app icon of new assets.

然后点击一些随机的类文件(这样当前屏幕将被关闭并重新加载)。然后返回此页面(您刚刚点击了“不使用资产目录”)。然后你会看到“使用资产”按钮>点击它>创建新资产>将创建新资产>创建新的应用程序图标>添加图标>再次在应用程序图标设置中>选择新资产的正确应用程序图标。

Hope this saved your time.

希望这可以节省您的时间。

回答by Tyler Morris

I solved this by fixing all of the images manually.

我通过手动修复所有图像解决了这个问题。

Xcode>Project>images.xcassets

Xcode>项目>images.xcassets

this shows the corrected AppIcon section. Many of the resolutions were either empty or incorrect before. I did a right click>show in finder on the highest resolution icon, and duplicated it into the missing resolutions. I then resized the png's to match the desired size.

这显示了更正的 AppIcon 部分。以前的许多决议要么是空的,要么是不正确的。我在最高分辨率图标上右键单击>在查找器中显示,并将其复制到缺少的分辨率中。然后我调整了 png 的大小以匹配所需的大小。

I then changed the naming convention in the directory to match the string from the error- in my case "40x40" etc.

然后我更改了目录中的命名约定以匹配错误中的字符串 - 在我的情况下为“40x40”等。

My next archive uploaded just fine.

我的下一个档案上传得很好。