首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >RROR ITMS-9000:“上传ipa文件时无效的图像路径错误”

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

Stack Overflow用户
提问于 2015-01-02 14:43:51
回答 1查看 750关注 0票数 1

我已经用HTML和JavaScript开发了一个应用程序,当我将.ipa文件上传到应用程序加载器时,我会得到以下错误:

代码语言:javascript
复制
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文件中引用。我已经查看了大量的网站,但没有发现任何修复。我的config.xml与iOS图像相关如下:

代码语言:javascript
复制
<icon src="icon.png"/>
<icon src="www/res/icon/ios/icon-57.png" gap:platform="ios" width="57" height="57"/>
<icon src="www/res/icon/ios/icon-72.png" gap:platform="ios" width="72" height="72"/>
<icon src="www/res/icon/ios/icon-57-2x.png" gap:platform="ios" width="114" height="114"/>
<icon src="www/res/icon/ios/icon-72-2x.png" gap:platform="ios" width="144" height="144"/>
EN

回答 1

Stack Overflow用户

发布于 2015-01-09 17:15:21

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

文档声称

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

在我看来,如果PGB能通知用户它没有找到图片,那就太好了。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/27743910

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档