菜鸟教程小白 发表于 2022-12-13 13:37:51

ios - 使用 LaunchScreen.xib 时,二进制文件未针对 iPhone 5 错误进行优化


                                            <p><p>我正在使用 <code>LaunchScreen.xib</code> 作为我的启动屏幕,但在尝试发布应用程序时我不断收到此错误。</p>

<p>为什么会这样以及如何避免这种情况?现在我有一个空的 xib,纯白色。</p>

<p>错误:</p>

<blockquote>
<p>ERROR ITMS-90096: &#34;Your binary is not optimized for iPhone 5 - New
iPhone apps and app updates submitted must support the 4-inch display
on iPhone 5 and must include a launch image referenced in the
Info.plist under UILaunchImages with a UILaunchImageSize value set to
{320, 568}. Launch images must be PNG files and located at the
top-level of your bundle, or provided within each .lproj folder if you
localize your launch images. Learn more about iPhone 5 support and app
launch images by reviewing the &#39;iOS Human Interface Guidelines&#39; at
&#39;<a href="https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/MobileHIG/IconsImages/IconsImages.html#//apple_ref/doc/uid/TP40006556-CH14-SW5" rel="noreferrer noopener nofollow">https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/MobileHIG/IconsImages/IconsImages.html#//apple_ref/doc/uid/TP40006556-CH14-SW5</a>&#39;
and the &#39;iOS App Programming Guide&#39; at
&#39;<a href="https://developer.apple.com/library/ios/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/App-RelatedResources/App-RelatedResources.html#//apple_ref/doc/uid/TP40007072-CH6-SW12" rel="noreferrer noopener nofollow">https://developer.apple.com/library/ios/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/App-RelatedResources/App-RelatedResources.html#//apple_ref/doc/uid/TP40007072-CH6-SW12</a>&#39;.&#34;</p>
</blockquote>

<p>我的 info.plist 的图像:
<a href="/image/CrNW4.png" rel="noreferrer noopener nofollow"><img src="/image/CrNW4.png" alt="enter image description here"/></a> </p></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><p>我认为您使用 7.0 作为您的部署目标,因此使用 Asset Catalog 并添加所有启动屏幕而不是 Launch Screen.xib 文件,这将解决您的问题。</p></p>
                                   
                                                <p style="font-size: 20px;">关于ios - 使用 LaunchScreen.xib 时,二进制文件未针对 iPhone 5 错误进行优化,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/34852881/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/34852881/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: ios - 使用 LaunchScreen.xib 时,二进制文件未针对 iPhone 5 错误进行优化