美文网首页
iOS应用打包上传时报错: ERROR ITMS-90096:

iOS应用打包上传时报错: ERROR ITMS-90096:

作者: 百事星空 | 来源:发表于2018-10-16 16:17 被阅读77次

    今天在打包app时报了下面的错误,现以解决写此文章记录一下,希望能给遇到同样问题的朋友参考一下。

    问题描述:

    ERROR ITMS-90096: "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 'iOS Human Interface Guidelines' at https://developer.apple.com/ios/human-interface-guidelines/graphics/launch-screen."
    ERROR ITMS-90096: "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 'iOS Human Interface Guidelines' at https://developer.apple.com/ios/human-interface-guidelines/graphics/launch-screen."

    解决方案:

    在工程里的Images.xcassets添加并设置LaunchImage对解决ERROR ITMS-90096根本不会起到任何作用,需要单独添加针对iPhone 5的载入图片。

    关键点有三项:

    1、图片的名称必须叫Default-568.png。
    2、必须把图片放在工程的根目录下。
    3、图片尺寸必须是320*568。

    <key>UILaunchImages</key>
    <array>
        <dict>
            <key>UILaunchImageName</key>
            <string>Default-568</string>
            <key>UILaunchImageSize</key>
            <string>{320, 568}</string>
        </dict>
    </array>
    
    PS: 查看plist文件的方法如下图
    如何查看plist文件.png

    相关文章

      网友评论

          本文标题:iOS应用打包上传时报错: ERROR ITMS-90096:

          本文链接:https://www.haomeiwen.com/subject/bgphzftx.html