如何修复 UIWebView 已弃用的 Ionic 4 [英] How to fix UIWebView deprecated Ionic 4

查看:34
本文介绍了如何修复 UIWebView 已弃用的 Ionic 4的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在提交我的最新版本时,苹果突然回了一条消息说有问题,具体是:

ITMS-90809:不推荐使用 API - Apple 将停止接受使用 UIWebView API 的应用程序的提交.请参阅 https://developer.apple.com/documentation/uikit/uiwebview 了解更多信息.这意味着什么以及与使用 IONIC 框架相关的内容.如何修复它.

解决方案

cordova 团队昨天在 2019-11-25 发布了一个版本 cordova-ios@5.1.0

此版本解决了来自 Apple Store 的 ITMS-90809 警报.

cordova 平台删除ios科尔多瓦平台添加 ios@5.1.0添加 

到您的 config.xml 文件运行cordova prepare ios"以应用更改.

https://cordova.apache.org/announcements/2019/11/25/cordova-ios-release-5.1.0.html#comment-4702612854

When submitting my latest build, Apple suddenly returned a message saying that there was an issue, specifically:

ITMS-90809: Deprecated API Usage - Apple will stop accepting submissions of apps that use UIWebView APIs. See https://developer.apple.com/documentation/uikit/uiwebview for more information. What that means and are that related to using the IONIC framework. How to fix it.

解决方案

The cordova team yesterday released 2019-11-25 a release cordova-ios@5.1.0

This release resolves the ITMS-90809 alert from the apple store.

cordova platform remove ios
cordova platform add ios@5.1.0

Add <preference name = "WKWebViewOnly" value = "true" /> to your config.xml file

Run "cordova prepare ios" to apply the changes.

https://cordova.apache.org/announcements/2019/11/25/cordova-ios-release-5.1.0.html#comment-4702612854

这篇关于如何修复 UIWebView 已弃用的 Ionic 4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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