错误 ITMS-9000:“上传 ipa 文件时出现无效的图像路径错误

Posted

技术标签:

【中文标题】错误 ITMS-9000:“上传 ipa 文件时出现无效的图像路径错误【英文标题】:RROR ITMS-9000: "Invalid Image Path error when uploading ipa file 【发布时间】:2015-01-02 14:43:51 【问题描述】:

我用 htmljavascript 开发了一个应用程序,当我将 .ipa 文件上传到应用程序加载器时,我收到以下错误:

ERROR ITMS-9000: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'icon.png'"
ERROR ITMS-9000: "Missing required icon file. The bundle does not contain an app icon for iPhone / iPod Touch of exactly '57x57' pixels, in .png format for ios versions < 7.0."
ERROR ITMS-9000: "Missing required icon file. The bundle does not contain an app icon for iPad of exactly '72x72' pixels, in .png format for iOS versions < 7.0."
ERROR ITMS-9000: "Your binary is not optimized for iPhone 5 - New iPhone apps and app updates submitted must support the 4-inch display on iPhone 5 and must include a launch image with the -568h size modifier immediately following the <basename> portion of the launch image's filename. Launch images must be PNG files and located at the top-level of your bundle, or provided within each .lproj folder if you localize your launch images. Learn more about iPhone 5 support and app launch images by reviewing the 'iOS Human Interface Guidelines' at 'https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/MobileHIG/IconsImages/IconsImages.html#//apple_ref/doc/uid/TP40006556-CH14-SW5' and the 'iOS App Programming Guide' at 'https://developer.apple.com/library/ios/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/App-RelatedResources/App-RelatedResources.html#//apple_ref/doc/uid/TP40007072-CH6-SW12'."

问题是所有图像都具有正确的大小并在 config.xml 文件中引用。我查看了大量网站,但没有找到任何修复方法。我与 iOS 图像相关的 config.xml 如下:

<icon src="icon.png"/>
<icon src="www/res/icon/ios/icon-57.png" gap:platform="ios"  />
<icon src="www/res/icon/ios/icon-72.png" gap:platform="ios"  />
<icon src="www/res/icon/ios/icon-57-2x.png" gap:platform="ios"  />
<icon src="www/res/icon/ios/icon-72-2x.png" gap:platform="ios"  />

【问题讨论】:

【参考方案1】:

使用 PhoneGap Build 时,config.xml 上使用的路径是相对于 www/ 的,因此您应该从 的开头删除 www/图标 src 路径。

documentation 声称

src:(必需)指定图像文件的位置,相对于您的 www 目录

在我看来,PGB 最好通知用户它没有找到图像..

【讨论】:

太棒了,使用 CLI 生成配置时,所有路径都是用 www/ 生成的,这很奇怪。

以上是关于错误 ITMS-9000:“上传 ipa 文件时出现无效的图像路径错误的主要内容,如果未能解决你的问题,请参考以下文章

错误 ITMS-9000:“不支持的架构。Xcode 存档错误

应用程序加载器显示错误 itms-9000

Phonegap 应用程序提交到 AppStore - ITMS-9000 错误

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

错误 ITMS-9000:“此捆绑包无效。Apple 目前不接受构建的应用程序

错误 ITMS-9000 无效架构 x86_64、i386