使用 xcode 6 提交时出现错误 ITMS-9000“无效的图像路径”

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/25907195/
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 05:36:09  来源:igfitidea点击:

ERROR ITMS-9000 "Invalid Image Path" when submitting with xcode 6

xcodexcasset

提问by GoldenJoe

When validating or submitting my app with xcode 6, I get the error:

使用 xcode 6 验证或提交我的应用程序时,出现错误:

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

I've checked my plist file, and there is no entry for CFBundleIcons. I am using an asset catalog, which I can see is configured correctly under the General target settings (it also builds properly with the icons on a device). I've tried removing and re-adding the catalogues, as well. My best guess is that there is some kind of bug in xcode when using multiple asset catalogs across multiple targets. Any ideas?

我检查了我的 plist 文件,没有 CFBundleIcons 条目。我正在使用资产目录,我可以看到它在常规目标设置下配置正确(它也使用设备上的图标正确构建)。我也尝试删除和重新添加目录。我最好的猜测是在跨多个目标使用多个资产目录时,xcode 中存在某种错误。有任何想法吗?

回答by GoldenJoe

This will make your head explode. Since xcode now offers @3x and carplay icons in the asset catalog, I filled everything out with the appropriate sized icons. Turns out my problem was solved by REMOVING the carplay icon and just leaving its spot blank.

这会让你的头爆炸。由于 xcode 现在在资产目录中提供 @3x 和 carplay 图标,我用适当大小的图标填充了所有内容。原来我的问题是通过删除 carplay 图标并将其留空来解决的。

回答by oshirogo

I had the same problem when switching my project to use the asset catalog, except mine was with a different image size:

切换我的项目以使用资产目录时,我遇到了同样的问题,除了我的图像大小不同:

ERROR ITMS-9000: "Invalid image path - No image found at the path referenced under 'CFBundleIcons':'AppIcon60x60'"

错误 ITMS-9000:“无效的图像路径 - 在‘CFBundleIcons’下引用的路径中找不到图像:‘AppIcon60x60’”

I fixed it by manually adding the image to

我通过手动将图像添加到

Images.xcassets/AppIcon.appiconset/Contents.json

Like so:

像这样:

{
  "size" : "60x60",
  "idiom" : "iphone",
  "filename" : "Icon-60.png",
  "scale" : "1x"
},

回答by Ankish Jain

Go to Image-xcassets where you app icon is -> Click you Appicon folder -> On the rightmost options there is Attribute inspector ( Inverted triangle) . Click that . Uncheck Carplay.

转到您的应用程序图标所在的 Image-xcassets -> 单击您的 Appicon 文件夹 -> 在最右侧的选项中有 Attribute inspector ( Inverted triangle) 。点击那个。取消选中 Carplay。