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中進(jìn)行了設(shè)置
<key>UIUserInterfaceStyle</key>
<string>UIUserInterfaceStyleLight</string>
打包上傳appstore,報以上錯誤;
從字面上意思是UIUserInterfaceStyle不能為UIUserInterfaceStyleLight模式,應(yīng)該為Light或者Dark,或者Automatic模式;
于是乎,點擊進(jìn)入枚舉類型進(jìn)行查看,
typedef NS_ENUM(NSInteger, UIUserInterfaceStyle) {
UIUserInterfaceStyleUnspecified,
UIUserInterfaceStyleLight,
UIUserInterfaceStyleDark,
}
是有l(wèi)ight的UIUserInterfaceStyleLight,和dark的選項的UIUserInterfaceStyleDark,而不是單純的light、dark;然后就比較納悶上傳一直報錯,于是乎嘗試做以下改變,問題解決。
解決:
Plist中的style項強(qiáng)制改成Light,不使用系統(tǒng)的枚舉UIUserInterfaceStyleLight;
<key>UIUserInterfaceStyle</key>
<string>Light</string>
原文鏈接:https://blog.csdn.net/TianYaHaiJiao_1/article/details/102709115