上傳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中進(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

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容