Xamarin Forms 上的 UIWebView 弃用和 App Store 拒绝 [英] UIWebView Deprecation and App Store Rejection on Xamarin Forms

查看:20
本文介绍了Xamarin Forms 上的 UIWebView 弃用和 App Store 拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以解决以下问题吗?

我的设置

<块引用>

Xamarin.iOS 版本:13.16.0.13(Visual Studio 社区)

Visual Studio Community 2019 for Mac 版本 8.5.2(内部版本 13)

Xamarin.Forms 4.5.0.617

我按照这里的说明

<块引用>

解决这个问题

<块引用>

ITMS-90809:已弃用的 API 使用 - 使用 UIWebView 的新应用程序没有不再接受.相反,使用 WKWebView 来提高安全性和可靠性.

但我在发布时收到以下错误

谢谢!

解决方案

As Microsoft 在 Microsoft 博客中提到,这已在 Xamarin.Forms 4.6 中修复

<块引用>

现在在 4.6 中,我们正在更新与 Google 库的绑定.我们有改进了对诸如设置按钮的样式的支持已禁用"文本颜色.最新的库也去掉了引用到 Apple 已弃用的 UIWebView.

因此将您的 Xamarin.Forms 更新到 4.6 版.

Can i fix the following ?

My setup

Xamarin.iOS Version: 13.16.0.13 (Visual Studio Community)

Visual Studio Community 2019 for Mac Version 8.5.2 (build 13)

Xamarin.Forms 4.5.0.617

I follow the instruction here

https://docs.microsoft.com/en-gb/xamarin/xamarin-forms/user-interface/webview?tabs=macos#uiwebview-deprecation-and-app-store-rejection-itms-90809

and here

https://github.com/xamarin/Xamarin.Forms/issues/7323#issuecomment-542363338

to fix this problem

ITMS-90809: Deprecated API Usage - New apps that use UIWebView are no longer accepted. Instead, use WKWebView for improved security and reliability.

but i get the following error on publish

Thank you!

解决方案

As Microsoft mentions in the Microsoft blog, this is fixed in Xamarin.Forms 4.6

Now in 4.6, we are updating the bindings to Google’s library. We have improved the styling support for things like, setting a button’s ‘Disabled’ text color. The latest library also removes the reference to Apple’s deprecated UIWebView.

So update your Xamarin.Forms to Version 4.6.

这篇关于Xamarin Forms 上的 UIWebView 弃用和 App Store 拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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