ITMS-90809: Deprecated API Usage - New apps that use UIWebView are no longer accepted. Instead, use WKWebView for improved security and reliability.
我的環境是
- Cordova 8.1.2
- Cordova 4.5.5
由於 Apple 之前已經有預告 2020.4.30 後不支援 UIWebView
需改成 WKWebView
如果沒改的話就會出現下面的錯誤
且上傳自動審核時會直接踢掉
然後直接發如上圖那封信給你
ITMS-90809: Deprecated API Usage - New apps that use UIWebView are no longer accepted. Instead, use WKWebView for improved security and reliability. Learn more (https://developer.apple.com/documentation/uikit/uiwebview) .
只要依照下面幾個步驟就可以解決這個問題
1. 安裝 cordova-plugin-wkwebview-engine 套件
# cordova plugin add cordova-plugin-wkwebview-engine
2. 使用 cordova-ios 5 的版本(我的環境預設是 4,所以要手動)
# cordova platform rm ios
# cordova platform add ios@5
3. 修改 config.xml
<platform name="ios">
<preference name="WKWebViewOnly" value="true" />
<feature name="CDVWKWebViewEngine">
<param name="ios-package" value="CDVWKWebViewEngine" />
</feature>
<preference name="CordovaWebViewEngine" value="CDVWKWebViewEngine" />
</platform>
參考來源:
How To Use 'WKWebViewOnly'
Comments