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

6

11

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?

Syncretism answered 23/3, 2015 at 12:59 Comment(2)
Any thoughts on this error when you want to deploy ONLY for iPad form factor?Gastight
@snow Crash your issue solved?Innoxious
J
18

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

enter image description here

Jeconiah answered 1/4, 2015 at 15:39 Comment(9)
I've been stuck on this for days. Thank you for this answer!Thermocouple
This issue has a lot of other reasons.Jeconiah
I only had a launch screen specified because it gave me retina 4 resolutions even though I had both the new launch images available. Took this out and it looks like it's still retina 4. Unfortunately I'm still getting this error from apple for some reason.Hilltop
For Retina 4 you have to provide launchimages 640*960 as @2x & 640*1136 as -568h@2xJeconiah
If I could give you more points I would... Stuck on this issue for more than an hour. Sometimes it feels like the submission process was made like this just to make a programmer's life impossible :)Magellan
Excuse me, where is App icons and Launch images ?Apartment
Hmm this is on properties, now I have seen.Apartment
Thanks! This answer along with this: https://mcmap.net/q/136554/-how-do-i-create-launch-images-for-iphone-6-6-plus-landscape-only-apps answer did the trick for me!Bare
@Vlad, I am using LaunchScreen.storyboard in my project for Splash screen. And I am getting the same error.Micheal
C
3

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.

Cresting answered 15/9, 2015 at 1:36 Comment(1)
What a huge waste of time researching iPhone5 HIG and launch screen reqs when the problem was that the xib was not in the copy resources step. Thanks for posting. That was a head scratcherJoses
C
3

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>
Cutcheon answered 25/9, 2015 at 3:46 Comment(0)
H
2

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.

Hypethral answered 28/4, 2016 at 10:59 Comment(0)
R
0

In my case I had to use an Image Catalog because my app has multiple targets with different resources for each, so simply copying the -568h PNG file into the root directory was not an option.

For those of you using image assets, the following worked for me, give it a try:

On your LaunchImage image assests, open the right hand pane where the devices and OS's that you target are listed as shown here:

enter image description here

Ensure that you have both these iPhone options selected and that you have loaded the correct size image for both as indicated at the bottom as "Expected Size".

Ramsden answered 14/1, 2016 at 15:9 Comment(0)
H
0

set “deployment target” value 7.0

Heigho answered 17/9, 2016 at 2:45 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.