当前位置 : 主页 > 手机开发 > cordova >

cordova – phonegap上传应用程序时出错:您的二进制文件未针对iPhone 5进行优化

来源:互联网 收集:自由互联 发布时间:2021-06-10
我尝试使用应用程序加载器上传我的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 dis
我尝试使用应用程序加载器上传我的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" />

将这些文件放在您的项目上,它将工作.

网友评论