cordova - phonegap 上传应用程序时出错 :Your binary is not optimized for iPhone 5

标签 cordova configure phonegap-build

我尝试使用应用程序加载器上传我的 phonegap 应用程序(.ipa 文件),但它给出了以下错误

          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'." at SoftwareAssets/SoftwareAsset (MZItmspSoftwareAssetPackage)

我引用了许多样本,但在所有样本中都给出了相同的错误
我用过 phonegap document它仍然给出同样的错误

这是我的 config.xml
    <icon src="icon.png" />
    <icon src="icon@2x.png" />
   <icon src="Icon-Small.png" />
   <icon src="Icon-Small@2x.png" />  
   <icon src="Default.png" />
   <icon src="Default@2x.png" />   
    <icon src="icon-568h@2x.png" />   
    <icon src="icons/ios/57.png"            gap:platform="ios"       
 width="57" height="57" />
    <icon src="72.png"            gap:platform="ios"        
width="72" height="72" />
    <icon src="72@2x.png" /> 
    <icon src="icons/ios/57-2x.png"         gap:platform="ios"       
 width="114" height="114" />
    <icon src="icons/ios/72-2x.png"         gap:platform="ios"        
width="144" height="144" />
 <icon src="Icon-Small-50.png" />
    <icon src="Icon-Small-50@2x.png" />
  <icon src="Default-Landscape.png" />
    <icon src="Default-Landscape@2x.png" />
  <icon src="Default-Portrait.png" />
    <icon src="Default-Portrait@2x.png" />
  <icon src="Icon-40.png" />
    <icon src="Icon-40@2x.png" /> 
 <icon src="Icon-60.png" />
    <icon src="Icon-60@2x.png" /> 

 <icon src="Icon-76.png" />
    <icon src="Icon-76@2x.png" /> 
   <!-- Define app splash screen for each platform. -->
    <gap:splash src="splashScreen.png"  />
    <gap:splash src="icons/ios/screen-iphone-portrait.png"    gap:platform="ios" 
    width="320" height="480" />
    <gap:splash src="icons/ios/ios/screen-iphone-portrait-2x.png" gap:platform="ios" 
    width="640" height="960" />
    <gap:splash src="icons/ios/ios/screen-ipad-portrait.png"      gap:platform="ios"
     width="768" height="1024" />
    <gap:splash src="icons/ios/ios/screen-ipad-landscape.png"     gap:platform="ios" 
    width="1024" height="768" />

最佳答案

似乎我们错过了一些启动画面。您的应用程序应具有以下配置:

<gap:splash src="res/screen/ios/screen-iphone-portrait.png"          gap:platform="ios"     width="320" height="480" />
  <gap:splash src="res/screen/ios/screen-iphone-portrait-2x.png"       gap:platform="ios"     width="640" height="960" />
  <gap:splash src="res/screen/ios/screen-iphone-landscape.png"         gap:platform="ios"     width="480" height="320" />
  <gap:splash src="res/screen/ios/screen-iphone-landscape-2x.png"      gap:platform="ios"     width="960" height="640" />
  <gap:splash src="res/screen/ios/screen-ipad-portrait.png"            gap:platform="ios"     width="768" height="1024" />
  <gap:splash src="res/screen/ios/screen-ipad-portrait-2x.png"         gap:platform="ios"     width="1536" height="2008" />
  <gap:splash src="res/screen/ios/screen-ipad-landscape.png"           gap:platform="ios"     width="1024" height="768" />
  <gap:splash src="res/screen/ios/screen-ipad-landscape-2x.png"        gap:platform="ios"     width="2048" height="1496" />
  <gap:splash src="res/screen/ios/screen-iphone-portrait-568h-2x.png"  gap:platform="ios"     width="640"  height="1136" />

将这些文件放在您的项目中,它将起作用。

关于cordova - phonegap 上传应用程序时出错 :Your binary is not optimized for iPhone 5,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22915222/

相关文章:

java - 如何为所有类配置log4j fileappender?

配置:错误:安装或配置 — C 编译器无法创建可执行文件

ssl - 客户端 : While using tortoiseSVN my access to the server is forbidden, 但我在使用浏览器时确实可以访问

ios - PhoneGap 检查文件是否存在

jQuery-mobile android 页面在转换期间闪烁

cordova - Phonegap 中的慢速 JQuery Mobile 面板

javascript - 我想使用 Angular js 根据特定的时间和日期在 ionic 中进行本地通知

version-control - cordova cli 生成的项目的哪些部分可以在源代码管理中安全地进行版本控制?

android - 从使用返回 html 和 javascript 的 ajax 调用的响应站点创建一个应用程序 - 最简单的方法?

javascript - 带有动态源的 Html 5 视频在 Android 中不起作用