“无效的图像路径[...]”,尽管CFBundleIcons不存在于.plist文件中 [英] "Invalid Image Path [...]", although CFBundleIcons is not present in .plist file
问题描述
我想通过执行以下步骤在iOS上发布基于cordova的应用程序:
- 运行
cordova build ios
- 在XCode中打开
< project> / platforms / ios
- 在XCode中,编辑
< project> -Info.plist
,并删除与图标相关的所有条目(CFBundleIconFile
,CFBundleIcons
,CFBundleIcons〜ipad
) - 上传到App Store ... < )=>上传后出现错误讯息
< > em>验证... (并按照向导)=>验证成功
错误:无效的图片路径 - 在键'CFBundleIcons'下引用:'AppIcon40x40'
以前,我有一些这样的错误消息,并在其他答案中读取他们与< project> -Info中的条目相关。 plist
。
在这个文件中没有任何条目 CFBundleIcons
还有一点很奇怪,我在网上找到的所有相关问题描述(例如
虽然在产生的应用程式封存档案中没有档案 AppIcon40x40.png
/验证服务似乎不再关心,提交成功。
I'm trying to publish a cordova-based app on iOS by doing the following steps:
- Run
cordova build ios
- Open the generated project under
<project>/platforms/ios
in XCode - In XCode, edit
<project>-Info.plist
and remove all entries related to icons (CFBundleIconFile
,CFBundleIcons
,CFBundleIcons~ipad
) - Product > Build, then Product > Archive
- Validate... (and follow wizard) => "Validation Successful"
- Upload to App Store... (and follow wizard) => Error message after upload
ERROR: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIcons': 'AppIcon40x40'"
Previously, I'd had a couple of such error messages and read in other answers that they're related to an entries in <project>-Info.plist
. I could resolve most with step 3, but this one remained.
There is no entry CFBundleIcons
in this file anymore, I double-checked by opening the final app archive.
It's also remarkable that all related problem descriptions I found online (e.g. this one) include the code ITMS-90032
in the error messages, but mine does not. What could be the reason for this?
What causes this error message, or how could I further debug the issue?
So far, I haven't found a satisfying explanation for the error message, but I've managed to apply a workaround.
I've created a new icon image file of dimensions 40x40 px and referenced in config.xml
as follows:
<icon src="img/small-icon_40.png" width="40" height="40"/>
In <project>-Info.plist
, I referenced said image under CFBundleIcons
instead of deleting the whole entry:
While there still is no file AppIcon40x40.png
in the resulting app archive, the upload/verification service doesn't seem to care anymore and the submission succeeds.
这篇关于“无效的图像路径[...]”,尽管CFBundleIcons不存在于.plist文件中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!