xcode 错误 ITMS-90096:您的二进制文件未针对 iPhone 5 进行优化

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/29210885/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 06:51:27  来源:igfitidea点击:

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

xcodeasset-catalog

提问by Snowcrash

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

在 LaunchImage.launchimage 文件夹中我有一个[email protected]但不是一个Default-568h.png图像。

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

似乎没有空间可以容纳一个,那么我如何将一个添加到此资产目录中?

回答by Vlad

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

尝试清除“应用程序图标和启动图像”中的“启动屏幕文件”

enter image description here

在此处输入图片说明

回答by arnold

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.

就我而言,我有一个 LaunchScreen.xib,所以我不需要 PNG。事实证明,我以某种方式从构建阶段的“复制捆绑资源”中删除了它。再次添加它,Apple 接受了构建。

回答by liruqi

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

从 iOS9 开始,您应该将启动图像添加到您的项目根目录,而不是Images.xcassets文件夹。并info.plist使用 key设置您的启动图像,UILaunchImages例如:

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

回答by Fabien Thetis

I got the same error message.

我收到了同样的错误信息。

the fix was to check all the warning of xcode7.3 during after a clean of the project.

修复是在清理项目后检查 xcode7.3 的所有警告

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

您需要检查所有 launchImage 是否具有“正确”和精确的分辨率。

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

如果 launchImage 文件夹中存在的一张图像的分辨率不正确,Apple 将拒绝该二进制文件。

回答by LI CHEN

set “deployment target” value 7.0

设置“部署目标”值 7.0

回答by Matthys Du Toit

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.

在我的情况下,我不得不使用图像目录,因为我的应用程序有多个目标,每个目标具有不同的资源,因此简单地将 -568h PNG 文件复制到根目录中不是一种选择。

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:

在 LaunchImage 图像资源上,打开右侧窗格,其中列出了您定位的设备和操作系统,如下所示:

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

确保您选择了这两个 iPhone 选项,并为两者加载了正确尺寸的图像,如底部所示的“预期尺寸”。