如何修复 UIWebView 已弃用的 Ionic 4 [英] How to fix UIWebView deprecated 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"以应用更改.
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.
这篇关于如何修复 UIWebView 已弃用的 Ionic 4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!