上传到IOS Connect时如何更正Phonegap Buil错误:错误ITMS-90032:“无效的图像路径-在该路径上找不到图像

时间:2019-11-24 17:34:38

标签: ios phonegap-build

我一直试图将一个ipa文件上传到Apple Connect进行测试。

它是由Phonegap构建生成的,应用程序ID为3729636。

由于没有MAC,我正在使用服务进行上传。

以下是错误:错误ITMS-90032:“无效的图像路径-在键'CFBundleIcons':'AppIcon20x20'下引用的路径上找不到图像”

The icon files are as follows:

ios图标和屏幕配置文件摘录为:

<platform name="ios">
<!-- iOS 8.0+ -->
<!-- iPhone 6 Plus -->
<icon src="res/icon/ios/icon-60@3x.png" width="180" height="180" />
<!-- iOS 7.0+ -->
<!-- iPhone / iPod Touch -->
<icon src="res/icon/ios/icon-60.png" width="60" height="60" />
<icon src="res/icon/ios/icon-60@2x.png" width="120" height="120" />
<!-- iPad -->
<icon src="res/icon/ios/icon-76.png" width="76" height="76" />
<icon src="res/icon/ios/icon-76@2x.png" width="152" height="152" />
<!-- Spotlight Icon -->
<icon src="res/icon/ios/icon-40.png" width="40" height="40" />
<icon src="res/icon/ios/icon-40@2x.png" width="80" height="80" />
<!-- iOS 6.1 -->
<!-- iPhone / iPod Touch -->
<icon src="res/icon/ios/icon.png" width="57" height="57" />
<icon src="res/icon/ios/icon@2x.png" width="114" height="114" />
<!-- iPad -->
<icon src="res/icon/ios/icon-72.png" width="72" height="72" />
<icon src="res/icon/ios/icon-72@2x.png" width="144" height="144" />
<!-- iPad Pro -->
<icon src="res/icon/ios/icon-167.png" width="167" height="167" />
<!-- iPhone Spotlight and Settings Icon -->
<icon src="res/icon/ios/icon-small.png" width="29" height="29" />
<icon src="res/icon/ios/icon-small@2x.png" width="58" height="58" />
<icon src="res/icon/ios/icon-small@3x.png" width="87" height="87" />
<!-- iPad Spotlight and Settings Icon -->
<icon src="res/icon/ios/icon-50.png" width="50" height="50" />
<icon src="res/icon/ios/icon-50@2x.png" width="100" height="100" />
<!-- iPad Pro -->
<icon src="res/icon/ios/icon-83.5@2x.png" width="167" height="167" />
<!-- Was missing -->
<icon src="res/icon/ios/icon-20.png" width="20" height="20" />

<splash height="1136" platform="ios" src="res/screen/ios/Default-568h@2x~iphone.png" width="640" />
<splash height="1334" platform="ios" src="res/screen/ios/Default-667h.png" width="750" />
<splash height="2208" platform="ios" src="res/screen/ios/Default-736h.png" width="1242" />
<splash height="1242" platform="ios" src="res/screen/ios/Default-Landscape-736h.png" width="2208" />
<splash height="1536" platform="ios" src="res/screen/ios/Default-Landscape@2x~ipad.png" width="2048" />
<splash height="768" platform="ios" src="res/screen/ios/Default-Landscape~ipad.png" width="1024" />
<splash height="2048" platform="ios" src="res/screen/ios/Default-Portrait@2x~ipad.png" width="1536" />
<splash height="1024" platform="ios" src="res/screen/ios/Default-Portrait~ipad.png" width="768" />
<splash height="960" platform="ios" src="res/screen/ios/Default@2x~iphone.png" width="640" />
<splash height="480" platform="ios" src="res/screen/ios/Default~iphone.png" width="320" />
</platform>

我尝试了从6.5.0到9.0.0的许多版本的CLI,两者之间没有太大差异(只有6.5.0有不同的错误)。

The latest is 9.0.0 : <preference name="phonegap-version" value="cli-9.0.0"/>

要进行构建,我将www目录打包并上传生成的zip文件。

请,请帮助!

1 个答案:

答案 0 :(得分:0)

经过大量努力的调试以解决令人困惑的错误消息后,问题似乎出在图像文件本身上。它们与GIMP一起保存,可能是GIMP试图变得太聪明或插入了太多信息。导出时,它提供了很多选项,而其中的一个可能不受Cordova的重视。

我用Paint打开并保存了所有图像,问题消失了。