错误代码ERROR ITMS-90096
Posted 雪奈椰子
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了错误代码ERROR ITMS-90096相关的知识,希望对你有一定的参考价值。
一.ERROR ITMS-90096
这是最常见的问题,据说是苹果的bug。明明LaunchImage里有iphone5的启动图片,但还是报错。可以按以下方法解决
1.添加一张启动图片到项目的根目录,尺寸为320*568,格式为png,命名为Default-568.png。
2.使用文本编辑打开info.plist,添加下面代码
```html/xml
<key>UILaunchImages</key>
<array>
<dict>
<key>UILaunchImageName</key>
<string>Default-568</string>
<key>UILaunchImageSize</key>
<string>320, 568</string>
</dict>
</array>
在xcode打开info.plist,如图
![image.png](https://s2.51cto.com/images/20220831/1661910051456976.png?x-oss-process=image/watermark,size_14,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_30,g_se,x_10,y_10,shadow_20,type_ZmFuZ3poZW5naGVpdGk=)
添加成功
3.shift+command+K clean一下
4.command+B build一下 如果xcode没有报错就可以重新上传了。我之前是图片有问题报错了,上传还是失败,后来重新做了张图片,就成功了
![image.png](https://s2.51cto.com/images/20220831/1661910039735721.png?x-oss-process=image/watermark,size_14,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_30,g_se,x_10,y_10,shadow_20,type_ZmFuZ3poZW5naGVpdGk=)
二.
ERROR ITMS-90705: “Launch storyboard not found. Make sure you specify the launch storyboard filename without a filename extension for the key UILaunchStoryboardName in the Info.plist.”
检查info.plist里的LaunchScreen
UILaunchStoryboardName
LaunchScreen
检查LaunchScreen.storyboard是否存在
也可以使用LaunchImage,将设置里的LaunchScreen File清空
![image.png](https://s2.51cto.com/images/20220831/1661910050133492.png?x-oss-process=image/watermark,size_14,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_30,g_se,x_10,y_10,shadow_20,type_ZmFuZ3poZW5naGVpdGk=)
三.ERROR ITMS-90022: “Missing required icon file. The bundle does not contain an app icon for iPhone / iPod Touch of exactly ‘57x57’ pixels, in .png format for ios versions < 7.0.”
WARNING ITMS-90025: “Missing recommended icon file. The bundle does not contain an app icon for iPhone / iPod Touch of exactly ‘120x120’ pixels, in .png format for ios versions >= 7.0.”
INFO ITMS-90111: “Your app is built with a beta version of Xcode or iOS SDK. Only apps distributed for beta testing may be built with beta software. To submit an app for distribution on the App Store, you will need to build the app with release versions of Xcode and iOS SDK
缺少app icon,在image.xcassets里的添加即可,所有的图标都要按照尺寸添加
![image.png](https://s2.51cto.com/images/20220831/1661910060350093.png?x-oss-process=image/watermark,size_14,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_30,g_se,x_10,y_10,shadow_20,type_ZmFuZ3poZW5naGVpdGk=)
以上是关于错误代码ERROR ITMS-90096的主要内容,如果未能解决你的问题,请参考以下文章
iOS打包上传ipa文件时,报错<ERROR ITMS-90096: "Your binary is not optimized for iPhone 5 - New iPhone a
提交时“您的二进制文件未针对 iPhone 5 进行优化”(ITMS-90096)
错误 ITMS-90096:“您的二进制文件未针对 iPhone 5 进行优化 - 提交的新 iPhone 应用程序和应用程序更新必须支持 4 英寸显示屏
xcode7的那些坑-“Your binary is not optimized for iPhone 5” (ITMS-90096) when submitting