I'm running into the Your binary is not optimized for iPhone 5
error:
I tried every solution suggested in the other questions but nothing works. To summarize:
I have the Default-568h@2x.png
image with a size of 640 × 1136 in the root directory of the project, where project_name.xcodeproj
is.
Following one advice, I added Default.png
(640 × 1136) and Default~iphone.png
(640 × 960) to the same directory. Didn't work.
I am using an asset catalog with the proper sizes in place.
Here's the strangest part: this is a version 1.1 of the application. I'm using the same .xcodeproj
with the same images. It validated with no issues the first time, but now it doesn't. Any ideas?
Using the image asset global to control if the image is correct, and see if there is the warning.
For the future is better using with last Xcode a storyboard screen:
To turn your app in universal mode:
add a storybord or using a StoryBorad in Auto Layout mode.
To use multiple storyboard you can use this in your AppDelegate inside a
application didFinishLaunchingWithOptions
:You can add all resolution iPhone 4s / 5 (s/c) 6 and 6 Plus
In your
<AppName>-Prefix.pch
define all resolutions like this:Then call the function in your project, for example one scrollview for iPhone 4/5 and iPad:
Hope this help you for now or for your future apps ;)
Having same issue. finally i found solution from Iphone 5 Launch Image Problem
please make sure the 568h file is in PNG format? Also make sure that you provided support for iphone 5 for all your screens? Only adding Default-568h@2x.png is not gaurantee for iphone 5 support. You have to check for framing of all your view for iphone 3.5" and 4" device.
Check wheter the images are added to target files
In your plist file set the value for your images in the icon set dictionary.
Well, looks like the problem went away once I upgraded to xCode 6. The app validated with no issues.