ITMS-90809:不推荐使用的 API 使用 - 不再接受使用 UIWebView 的现有应用程序 [英] ITMS-90809: Deprecated API Usage - existing app that use UIWebView are no longer accepted

查看:19
本文介绍了ITMS-90809:不推荐使用的 API 使用 - 不再接受使用 UIWebView 的现有应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<块引用>

ITMS-90809:已弃用 API 使用 - 自 2020 年 4 月 30 日起,Apple 将不再接受使用 UIWebView 的新应用程序的提交以及自 2020 年 12 月起使用 UIWebView 的应用程序更新.而是使用 WKWebView 来提高安全性和可靠性.

我正在尝试更新现有应用,而不是新应用.我仍然无法上传应用程序.我通过电子邮件收到此错误:

<小时>

我们发现您最近交付的应用应用名称"20202.421.1 (6) 存在一个或多个问题.请更正以下问题,然后重新上传.ITMS-90809:不推荐使用的 API 使用 - 不再接受使用 UIWebView 的新应用程序.相反,使用 WKWebView 来提高安全性和可靠性.了解更多 (https://developer.apple.com/documentation/uikit/uiwebview).

<小时>

Apple 是否更改了政策?还是我需要改变UIWebView?

解决方案

是的,Apple 确实改变了政策你用的是离子吗?如果是这样,请安装这些:

  1. cordova 插件添加cordova-plugin-ionic-webview@latest
  2. npm install @ionic-native/ionic-webview

然后在你的ios平台下的config.xml中添加:

最后运行 ionic cordova prepare ios 来反映变化然后运行 ​​ionic cordova build ios --prod

PS:确保你只安装了一个 webview 插件.. 要么是这个,要么是cordova-webviewengine".但是上述方法对我有用,我的应用程序现在在应用程序商店中

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?

解决方案

Yes, Apple did change the policies Are you using ionic? if so, install these:

  1. cordova plugin add cordova-plugin-ionic-webview@latest
  2. npm install @ionic-native/ionic-webview

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" />

Finally run ionic cordova prepare ios to reflect the changes then run ionic cordova build ios --prod

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

这篇关于ITMS-90809:不推荐使用的 API 使用 - 不再接受使用 UIWebView 的现有应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆