iOS错误&解决

上传appstore提交审核报App Store Connect

2020-03-21  本文已影响0人  朱晓晓的技术博客

OS12以后UIUserInterfaceStyle添加了dark模式,上传appstore提交审核,报错App Store Connect Operation Error ERROR ITMS-90785;

具体报错信息:

App Store Connect Operation Error ERROR ITMS-90785: "UIUserInterfaceStyle can’t be 'UIUserInterfaceStyleLight'. It can only be 'Light', 'Dark', or 'Automatic'. Learn more(https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/iPhoneOSKeys.html#//apple_ref/doc/uid/TP40009252-SW44)."

由于没时间没有适配dark模式,所以选择不适配dark模式。于是,在plist中进行了设置

<key>UIUserInterfaceStyle</key>
    <string>UIUserInterfaceStyleLight</string>

打包上传appstore,报以上错误;

从字面上意思是UIUserInterfaceStyle不能为UIUserInterfaceStyleLight模式,应该为Light或者Dark,或者Automatic模式;

于是乎,点击进入枚举类型进行查看,

typedef NS_ENUM(NSInteger, UIUserInterfaceStyle) {
    UIUserInterfaceStyleUnspecified,
    UIUserInterfaceStyleLight,
    UIUserInterfaceStyleDark,
}

是有light的UIUserInterfaceStyleLight,和dark的选项的UIUserInterfaceStyleDark,而不是单纯的light、dark;然后就比较纳闷上传一直报错,于是乎尝试做以下改变,问题解决。

解决:

Plist中的style项强制改成Light,不使用系统的枚举UIUserInterfaceStyleLight;

<key>UIUserInterfaceStyle</key>
    <string>Light</string>

原文链接:https://blog.csdn.net/TianYaHaiJiao_1/article/details/102709115

上一篇下一篇

猜你喜欢

热点阅读