Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

phonegap Error uploading app :Your binary is not optimized for iPhone 5

i try to upload my phonegap app(.ipa file) using application loader but it gives below error

          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)

i referenced many sampled but in all samples it give same error i used phonegap document it still give same error

this is my config.xml

    <icon src="icon.png" />
    <icon src="[email protected]" />
   <icon src="Icon-Small.png" />
   <icon src="[email protected]" />  
   <icon src="Default.png" />
   <icon src="[email protected]" />   
    <icon src="[email protected]" />   
    <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="[email protected]" /> 
    <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="[email protected]" />
  <icon src="Default-Landscape.png" />
    <icon src="[email protected]" />
  <icon src="Default-Portrait.png" />
    <icon src="[email protected]" />
  <icon src="Icon-40.png" />
    <icon src="[email protected]" /> 
 <icon src="Icon-60.png" />
    <icon src="[email protected]" /> 

 <icon src="Icon-76.png" />
    <icon src="[email protected]" /> 
   <!-- 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" />
like image 883
user1688401 Avatar asked Apr 07 '14 14:04

user1688401


3 Answers

It seems like we were missing some splash screens. Your app should have the following on config:

<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" />

Put those files on your project and it will work.

like image 197
renanleandrof Avatar answered Nov 19 '22 00:11

renanleandrof


Is necessary load all icons and screens

<icon src="icon.png" gap:platform="ios" width="57" height="57" />
<icon src="icon-60.png" gap:platform="ios" width="60" height="60" />
<icon src="[email protected]" gap:platform="ios" width="120" height="120" />
<icon src="[email protected]" gap:platform="ios" width="114" height="114" />
<!-- iPad -->
<icon src="icon-72.png" gap:platform="ios" width="72" height="72" />
<icon src="[email protected]" gap:platform="ios" width="144" height="144" />
<icon src="icon-76.png" gap:platform="ios" width="76" height="76" />
<icon src="[email protected]" gap:platform="ios" width="152" height="152" />

<!-- Settings Icon -->
<icon src="icon-small.png" gap:platform="ios" width="29" height="29" />
<icon src="[email protected]" gap:platform="ios" width="58" height="58" />
<icon src="icon-50.png" gap:platform="ios" width="50" height="50" />
<icon src="[email protected]" gap:platform="ios" width="100" height="100" />

<!-- Spotlight Icon -->
<icon src="icon-40.png" gap:platform="ios" width="40" height="40" />
<icon src="[email protected]" gap:platform="ios" width="80" height="80" />
<!-- Define app splash screen for each platform. -->
<!-- iPhone and iPod touch -->
<gap:splash src="Default.png" gap:platform="ios" width="320" height="480" />
<gap:splash src="[email protected]" gap:platform="ios" width="640" height="960" />

<!-- iPhone 5 / iPod Touch (5th Generation) -->
<gap:splash src="[email protected]" gap:platform="ios" width="640" height="1136" />

<!-- iPad -->
<gap:splash src="Default-Portrait.png" gap:platform="ios" width="768" height="1024" />
<gap:splash src="Default-Landscape.png" gap:platform="ios" width="1024" height="768" />

<!-- Retina iPad -->
<gap:splash src="[email protected]" gap:platform="ios" width="1536" height="2048" />
<gap:splash src="[email protected]" gap:platform="ios" width="2048" height="1536" />
like image 41
ogarzonm Avatar answered Nov 18 '22 23:11

ogarzonm


Using the above responses helped me, here my complete list for Icons & Splash Screen

<!-- iPhone -->
<icon src="res/icon/ios/icon-57.png"            gap:platform="ios"      width="57" height="57" />
<icon src="res/icon/ios/icon-57-2x.png"         gap:platform="ios"      width="114" height="114" />
<icon src="res/icon/ios/icon-60.png"            gap:platform="ios"      width="60" height="60" />
<icon src="res/icon/ios/icon-60-2x.png"         gap:platform="ios"      width="120" height="120" />

<!-- iPad -->
<icon src="res/icon/ios/icon-72.png"            gap:platform="ios"      width="72" height="72" />
<icon src="res/icon/ios/icon-72-2x.png"         gap:platform="ios"      width="144" height="144" />
<icon src="res/icon/ios/icon-76.png"            gap:platform="ios"      width="76" height="76" />
<icon src="res/icon/ios/icon-76-2x.png"         gap:platform="ios"      width="152" height="152" />

<!-- Settings Icon -->
<icon src="res/icon/ios/icon-small.png"         gap:platform="ios"      width="29" height="29" />
<icon src="res/icon/ios/icon-small-2x.png"      gap:platform="ios"      width="58" height="58" />
<icon src="res/icon/ios/icon-50.png"            gap:platform="ios"      width="50" height="50" />
<icon src="res/icon/ios/[email protected]"         gap:platform="ios"      width="100" height="100" />

<!-- Spotlight Icon -->
<icon src="res/icon/ios/icon-40.png"            gap:platform="ios"      width="40" height="40" />
<icon src="res/icon/ios/[email protected]"         gap:platform="ios"      width="80" height="80" />

<!-- WebOs -->
<icon src="res/icon/webos/icon-64.png"          gap:platform="webos" />

<!-- Windows -->
<icon src="res/icon/windows-phone/icon-48.png"  gap:platform="winphone" />
<icon src="res/icon/windows-phone/icon-173.png" gap:platform="winphone"   gap:role="background" />

<!-- Define app splash screen for each platform. -->
<!-- iPad -->
<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-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" />

<!-- iPhone -->
<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-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-portrait-568h-2x.png"  gap:platform="ios"     width="640"  height="1136" />
like image 42
Kunal Panchal Avatar answered Nov 18 '22 23:11

Kunal Panchal