Error ITMS-90096: Your binary is not optimized for

2020-07-05 05:40发布

I'm getting this error:

enter image description here

Looking in the LaunchImage.launchimage folder I have a Default-568h@2x.png 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?

6条回答
成全新的幸福
2楼-- · 2020-07-05 06:03

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>
查看更多
混吃等死
3楼-- · 2020-07-05 06:03

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".

查看更多
老娘就宠你
4楼-- · 2020-07-05 06:14

set “deployment target” value 7.0

查看更多
爱情/是我丢掉的垃圾
5楼-- · 2020-07-05 06:16

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.

查看更多
祖国的老花朵
6楼-- · 2020-07-05 06:18

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

enter image description here

查看更多
放我归山
7楼-- · 2020-07-05 06:21

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.

查看更多
登录 后发表回答