Xcode error while validation - "Your binary is not optimized for iPhone 5"

34,880

Solution 1

Are you sure the 568h file is actually in PNG format? Also make sure that you provided support for iphone 5 for all your screens? Only adding [email protected] is not gaurantee for iphone 5 support. You have to check for framing of all your view for iphone 3.5" and 4" device.

You can do the framing by code or autoresizing that is other thing.

Kindly check out this link: Your binary is not optimized for iPhone 5

Solution 2

Add this image ([email protected]) to in your project at the top layer as below.

enter image description here

Image to add: enter image description here

Solution 3

I faced the same error and its fixed by following these page instructions: enter image description here

http://dannysu.com/2014/04/16/not-optimized-for-iphone5/

Solution 4

I ran into this problem when I was using multiple storyboards in iOS 9. I solved it by going to Project Directory --> General, then for "Launch Screen File", selecting "Main"

Solution 5

I just selected: "Don't use asset catalogs" and then add screenshots photo into: Supporting Files.

enter image description here

Share:
34,880
Khairil Ushan
Author by

Khairil Ushan

Updated on February 03, 2020

Comments

  • Khairil Ushan
    Khairil Ushan over 4 years

    Just got stuck with this error while I'm trying to publish an app to app store. Sorry because i cant copy-paste the error code so I will post an image in my question.

    enter image description here

  • Khairil Ushan
    Khairil Ushan almost 10 years
    yes my 568h@2x image is a png. is the "Default" on the name is a must ?
  • Irfan
    Irfan almost 10 years
    yes it is must, it should be like this Default-568h@2x
  • A-Live
    A-Live almost 10 years
    I don't think the name format is a "must" if you use xcassets to setup your launch images.
  • Irfan
    Irfan almost 10 years
    yes you are right but if we don't use xcassets then it is "must".
  • Khairil Ushan
    Khairil Ushan almost 10 years
    hi @Irfan , thanks for the link, got good one from there, i solve my problem by changing to Asset Catalogue mode in general settings (just like an example from ur link). and i do the same with your link and i see that there's another part that still missing image, so i just add it and problem solve. and i uncheck all part that i don't need (in my case all landscape launch images) . thanks.
  • Admin
    Admin over 8 years
    I right-clicked on the black image and save it in 'Downloads'. Then I dragged and dropped the image into my project and renamed it to: [email protected]. I get no errors anymore when uploading a new binary package to iTC.
  • user1435853
    user1435853 over 7 years
    I also downloaded the image. The name of the images has to be '[email protected]' - or it doesn't work
  • covard
    covard over 5 years
    I have been dealing with this for 2 days now. I tried the above but still get the error, so frustrating.
  • covard
    covard over 5 years
    NM I'm an id10t and had the file named [email protected], renaming it fixed it thank you so much.
  • K..
    K.. over 5 years
    I removed all of my launch images and added an empty storyboard. then the error went away.