Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error ITMS-90096: Your binary is not optimized for iPhone 5

I'm getting this error:

enter image description here

Looking in the LaunchImage.launchimage folder I have a [email protected] but not a Default-568h.png image.

There doesn't seem to be a space for one so how do I add one to this Asset Catalog?

like image 636
Snowcrash Avatar asked Mar 23 '15 12:03

Snowcrash


4 Answers

Try to clear "Launch screen file" at "App icons and Launch images"

enter image description here

like image 124
Vlad Avatar answered Nov 07 '22 02:11

Vlad


In my case, I had a LaunchScreen.xib so I shouldn't have needed the PNG. It turns out that somehow I had deleted it from "Copy Bundle Resources" in Build Phases. Added it again and Apple accepted the build.

like image 29
arnold Avatar answered Nov 07 '22 00:11

arnold


From iOS9, you should add launch images to your project root, not Images.xcassets folder. And set your launch images in info.plist with key UILaunchImages, for my example:

<key>UILaunchImages</key>
<array>
    <dict>
        <key>UILaunchImageMinimumOSVersion</key>
        <string>7.1</string>
        <key>UILaunchImageName</key>
        <string>iPhone5Portrait</string>
    </dict>
    <dict>
        <key>UILaunchImageMinimumOSVersion</key>
        <string>7.1</string>
        <key>UILaunchImageName</key>
        <string>iPhone6Portrait</string>
    </dict>
</array>
like image 27
liruqi Avatar answered Nov 07 '22 02:11

liruqi


I got the same error message.

the fix was to check all the warning of xcode 7.3 during after a clean of the project.

You need to check that all the launchImage have the "correct" and precise resolution.

If one image present in launchImage folder is not with the uncorrect resolution , Apple reject the binary.

like image 2
Fabien Thetis Avatar answered Nov 07 '22 01:11

Fabien Thetis