cccicl
cccicl
发布于 1个月前

上传appstore提交审核报App Store Connect Operation Error ERROR ITMS-90785: "UIUserInterfaceStyle can’t be

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>
©2020 edoou.com   京ICP备16001874号-3