Xcode error while validation - "Your binary is not optimized for iPhone 5"
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.
Solution 3
I faced the same error and its fixed by following these page instructions:
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.
Khairil Ushan
Updated on February 03, 2020Comments
-
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.
-
Khairil Ushan almost 10 yearsyes my 568h@2x image is a png. is the "Default" on the name is a must ?
-
Irfan almost 10 yearsyes it is must, it should be like this Default-568h@2x
-
A-Live almost 10 yearsI don't think the name format is a "must" if you use xcassets to setup your launch images.
-
Irfan almost 10 yearsyes you are right but if we don't use xcassets then it is "must".
-
Khairil Ushan almost 10 yearshi @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 over 8 yearsI 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 over 7 yearsI also downloaded the image. The name of the images has to be '[email protected]' - or it doesn't work
-
covard over 5 yearsI have been dealing with this for 2 days now. I tried the above but still get the error, so frustrating.
-
covard over 5 yearsNM I'm an id10t and had the file named [email protected], renaming it fixed it thank you so much.
-
K.. over 5 yearsI removed all of my launch images and added an empty storyboard. then the error went away.