ITMS-90809: Deprecated API Usage - existing app that use UIWebView are no longer accepted

瘦欲@ 提交于 2020-06-27 07:17:21

问题


ITMS-90809: Deprecated API Usage - Apple will no longer accept submissions of new apps that use UIWebView as of April 30, 2020 and app updates that use UIWebView as of December 2020. Instead, use WKWebView for improved security and reliability.

I am trying to update an existing app, not a new app. Still I am not able to upload the app. I got this error via email:


We identified one or more issues with a recent delivery for your app, "App Name" 20202.421.1 (6). Please correct the following issues, then upload again.
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).

Did Apple change its policy or something? Or do I need to change UIWebView?


回答1:


Yes, Apple did change the policies Are you using ionic? if so, install these: i. cordova plugin add cordova-plugin-ionic-webview@latest ii. npm install @ionic-native/ionic-webview

and then add this to your config.xml under ios platform: <preference name="WKWebViewOnly" value="true" /> <feature name="CDVWKWebViewEngine"> <param name="ios-package" value="CDVWKWebViewEngine" /> </feature> <preference name="CordovaWebViewEngine" value="CDVWKWebViewEngine" />

run - "ionic cordova prepare ios" to reflect changes then run ionic cordova build ios

PS: Make sure you have only one webview plugin installed.. either this or the 'cordova-webviewengine'. But the above method worked for me and my app is in app store now




回答2:


In Terminal, run this command in your iOS project folder grep -r "UIWebView" .

It will show all the files that uses UIWebview. Update whatever files to use WKWebView. If your pod libraries are showing that it has UIWebView. Update the pods files as well.

FYI it took me 6 hours to fix my project to use WKWebView since I had to update the pods files and had to fix a lot of code.



来源:https://stackoverflow.com/questions/61790543/itms-90809-deprecated-api-usage-existing-app-that-use-uiwebview-are-no-longer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!