ios 错误 ITMS-90032:“无效的图像路径 - 在键 'CFBundleIcons':AppIcon40x40 下引用的路径中找不到图像”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/28165916/
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
ERROR ITMS-90032:"Invalid Image Path - No image found at the path referenced under key 'CFBundleIcons':AppIcon40x40"
提问by Md Rais
I get this "No image found at the path referenced under key 'CFBundleIcons':" error,even when i have added app icon images in Images.xcastes folder, while uploading my app to appstore. Your immediate response is appreciated. Thanks
我收到这个“在关键'CFBundleIcons'下引用的路径中找不到图像:”错误,即使我在Images.xcastes文件夹中添加了应用程序图标图像,同时将我的应用程序上传到appstore。感谢您的立即回复。谢谢
采纳答案by Md Rais
I have found out the solution to this post and here I am going to explain it how I could solve this issue.
我已经找到了这篇文章的解决方案,在这里我将解释如何解决这个问题。
1) Remove all the app icons from the Images.Xcassets folder and add them into your main bundle. Shown in the figure below.
1) 从 Images.Xcassets 文件夹中删除所有应用程序图标并将它们添加到您的主包中。如下图所示。
2) Go to info plist and add "Icon files(iOS 5)" dictionary and add the app icon names under the strings(name of the once you are using in your app). Its shown in the figure below. Make sure that the images are png files. And you will be done wit this.Thanks
2)转到info plist并添加“图标文件(iOS 5)”字典并在字符串下添加应用程序图标名称(您在应用程序中使用的名称)。它如下图所示。确保图像是 png 文件。你会知道这个的。谢谢
回答by user1527225
I got this error; all my images were correctly located in the Images.xcassets folder, and it compiled, verified and ran OK on my development system. So I just deleted the bad key from the <project name>-Info.plist file.
我收到了这个错误;我的所有图像都正确位于 Images.xcassets 文件夹中,并且它在我的开发系统上编译、验证并运行正常。所以我只是从 <project name>-Info.plist 文件中删除了坏键。
Then the upload to the app store went without complaint. YMMV.
然后上传到应用商店就毫无怨言了。天啊。
回答by codehammer
I had a similar issue when submitting my app. Same message except it was AppIcon120x120. The problem being on the new xcasset layout there is a new CarPlay icon for iOS8. Clearing that icon fixed it, which I filled in out of habit. Here is where I found the answer. 90032 invalid image problem.
我在提交我的应用程序时遇到了类似的问题。相同的消息,除了它是 AppIcon120x120。问题出在新的 xcasset 布局上,iOS8 有一个新的 CarPlay 图标。清除该图标修复了它,这是我出于习惯填写的。这是我找到答案的地方。 90032 无效图像问题。
回答by MSwift
I got the same error when I submitted my app with a watchkit extension. This is the solution that worked for me :
当我使用 watchkit 扩展提交我的应用程序时,我遇到了同样的错误。这是对我有用的解决方案:
- Deleted the AppIcon Image set from my Xcode project Images.xcassetswith all the icons that I added.
- Then recreate the AppIcon Image set from + button below when you select the Images.xcassets file. You can do this by clicking the plus button then select New App Icon.
- A new AppIcon Image set will be created. Now, add all the required icons that you app support.Make sure they are in the PNG-24 format.
- Finally, I selected my app name Target and under Generaltab I scrolled down to the section App Icons and Lunch Imagesand selected the newly created AppIcon images set in the App Icons Source
- Clean your project and rebuild. This solution worked for me and removed the errors.
- 从我的 Xcode 项目Images.xcassets 中删除了 AppIcon Image 集以及我添加的所有图标。
- 然后,当您选择 Images.xcassets 文件时,从下面的 + 按钮重新创建 AppIcon 图像集。您可以通过单击加号按钮然后选择新建应用程序图标来执行此操作。
- 将创建一个新的 AppIcon 图像集。现在,添加您的应用程序支持的所有必需图标。确保它们采用 PNG-24 格式。
- 最后,我选择了我的应用程序名称 Target,在General选项卡下向下滚动到App Icons 和 Lunch Images 部分,并选择了在App Icons Source 中设置的新创建的 AppIcon 图像
- 清理您的项目并重建。该解决方案对我有用并消除了错误。
回答by Heliotropix
Make sure your images are not corrupted and are in the right format (png24). I had one bad image that was tripping me up. After trying everything else, I incidentally discovered the bad one. Wouldn't it be nice if we got a meaningful error message about this.
确保您的图像没有损坏并且格式正确(png24)。我有一个糟糕的形象让我绊倒。在尝试了其他一切之后,我偶然发现了一个不好的。如果我们收到一条有意义的错误消息,那岂不是很好。
回答by aguazul
I'm using Xamarin Studio V 5.10.3 and had a few issues while using Application Loader to submit the .ipa file to the App Store.
我使用的是 Xamarin Studio V 5.10.3,在使用 Application Loader 将 .ipa 文件提交到 App Store 时遇到了一些问题。
I also had this ERROR itms-90022 due to missing 120x120 icon. Of course I had included the 120x120 file in the Images.xcassets --> AppIcons.appiconset --> Contents.json file....so I wasn't sure what the issue was.
由于缺少 120x120 图标,我也遇到了这个错误 itms-90022。当然,我已经在 Images.xcassets --> AppIcons.appiconset --> Contents.json 文件中包含了 120x120 文件......所以我不确定问题是什么。
What finally worked for me was: 1) Based on the first answer to this question, I removed the CarPlay 120x120 and 180x180 images from the Contents.json reference. I tried getting it to go through again, but it failed..still claiming it was missing the 120x120 file.
最终对我有用的是:1)根据这个问题的第一个答案,我从 Contents.json 参考中删除了 CarPlay 120x120 和 180x180 图像。我试图让它再次通过,但它失败了......仍然声称它缺少 120x120 文件。
2) I noticed that there were 2 files of size 120x120 (I had uploaded a 40pt x 3 = 120x120 AND a 60pt x 2, which also = 120x120. Perhaps they were conflicting!) I removed one of them.... tried again.. STILL no go.
2)我注意到有 2 个大小为 120x120 的文件(我上传了一个 40pt x 3 = 120x120 和一个 60pt x 2,它也 = 120x120。也许它们是冲突的!)我删除了其中一个......再试一次..还是不行。
3) I deleted the AppIcons.apppiconset folder from the project completely and recreated it by right clicking on Images.xcassets and choosing Add --> New App Icon. I recreated the Contents.json, making sure to not use 2 different versions of the 120x120 file. Once they were all filled in, I tried submitting through Application Loader again and IT WORKED!
3) 我从项目中完全删除了 AppIcons.apppiconset 文件夹,并通过右键单击 Images.xcassets 并选择添加 --> 新建应用程序图标来重新创建它。我重新创建了 Contents.json,确保不使用 120x120 文件的 2 个不同版本。全部填好后,我再次尝试通过 Application Loader 提交,结果成功了!
Short answer = delete your AppIcons.appiconset folder and recreate it. Make sure you aren't using 2 different files that are the same size (like 40pt x3 and 60pt x2).
简短回答 = 删除您的 AppIcons.appiconset 文件夹并重新创建它。确保您没有使用 2 个相同大小的不同文件(例如 40pt x3 和 60pt x2)。
回答by Anil Gupta
Make sure that you are using the Image asset folder for the App Icons.
确保您使用的是应用程序图标的图像资产文件夹。
Remove Resource bundle's Icon and icon name from the info Plist.
从信息 Plist 中删除资源包的图标和图标名称。
You need to use the icon form the info plist or App Icon from the Image asset folder.
您需要使用来自图像资产文件夹的信息 plist 或应用程序图标的图标。
Don't use both because it will always give preference to info plist.
不要同时使用两者,因为它总是优先于 info plist。
I removed the ICONs from the Resource bundle and added to the Image asset folder.
我从资源包中删除了图标并添加到图像资产文件夹中。
回答by Joffrey Lgt
I have experienced the same issue with Cordova.
To solve it, I have just exported all of the pictures on images.xcassets/AppIcon.appiconset
in another folder of my laptop and deleted all of them in Xcode.
我在 Cordova 上遇到过同样的问题。为了解决这个问题,我刚刚将所有图片导出到images.xcassets/AppIcon.appiconset
笔记本电脑的另一个文件夹中,并在 Xcode 中删除了所有图片。
Then, clean and build your project.
然后,清理并构建您的项目。
Drag and drop pictures from your folder to Xcode and clean/build one more time.
将图片从您的文件夹拖放到 Xcode,然后再清理/构建一次。
回答by thanhbinh84
Designer sent me jpeg files, I was lazy renaming to png manually and adding to Assets. There was no complaint from Xcode, but got the error when uploading into Appstore. So, I converted by tools and it worked OK.
设计师给我发了 jpeg 文件,我懒得手动重命名为 png 并添加到资产中。Xcode 没有抱怨,但在上传到 Appstore 时出现错误。所以,我通过工具进行了转换,效果很好。
回答by n.by.n
Cause Of Problem
问题原因
This usually happens when Application Loader & iTunes Connect could not find an icon file with the specified name (AppIcon40x40 here) in your Icon directory.
这通常发生在 Application Loader 和 iTunes Connect 在您的 Icon 目录中找不到具有指定名称(此处为 AppIcon40x40)的图标文件时。
Sometimes you may have all the required sizes of Icons added to your project but still you may find this error because of icon naming conflicts.
有时您可能已将所有所需大小的图标添加到您的项目中,但由于图标命名冲突,您仍然可能会发现此错误。
Solution
解决方案
Go To Info.plist->CFBundleIcons and compare all your actual icon files with the entries here(compare exact names), delete any extra ones here which may be causing this kind of an error during upload.
转到 Info.plist->CFBundleIcons 并将所有实际图标文件与此处的条目进行比较(比较确切的名称),删除此处可能导致此类错误的所有额外图标文件。