Warm tip: This article is reproduced from serverfault.com, please click

ios-ITMS-90809:不赞成使用的API

(ios - ITMS-90809: Deprecated API Usage)

发布于 2020-05-14 06:16:02

ITMS-90809:不推荐使用的API-自2020年4月30日起,Apple将不再接受使用UIWebView的新应用程序的提交,而从2020年12月起将不再使用UIWebView的应用程序提交。相反,请使用WKWebView来提高安全性和可靠性。

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


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).

苹果是否改变了政策或其他措施?还是我需要改变UIWebView

Questioner
Ragesh Pikalmunde
Viewed
11
7,893 2020-10-14 04:50:26

是的,Apple确实更改了政策。你使用的是离子型吗?如果是这样,请安装以下这些:

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

然后将其添加到ios平台下config.xml中

<preference name="WKWebViewOnly" value="true" />
<feature name="CDVWKWebViewEngine">`
<param name="ios-package" value="CDVWKWebViewEngine" />
</feature>
<preference name="CordovaWebViewEngine" value="CDVWKWebViewEngine" />

最后运行ionic cordova prepare ios以反映更改,然后运行ionic cordova build ios --prod

PS:请确保你只安装了一个webview插件。或者此插件或“ cordova-webviewengine”。但是上述方法对我有效,并且我的应用现在已在应用商店中