Xamarin Forms 中的 UIWebView 警告 iOS

UIWebView warning in Xamarin Forms iOS

将我的 .ipa 发送到 Apple,我收到了这个警告:

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. Learn more (https://developer.apple.com/documentation/uikit/uiwebview).

我仔细关注了this solution

仍然收到警告。

我认为是因为我在项目中引用了Telerik控件,但我也遵循了这个solution

还没有运气

This post有答案

在我的项目中,我有一个对

的引用

Xamarin.Forms.Visual.Material

这在内部引用了

Xamarin.iOS.MaterialComponents

组件的版本是旧的 (72) 所以我添加了最新版本 Xamarin.iOS.MaterialComponents 作为新的 nuget,(现在是 92),上传了一个新的 .IPA 并且错误消失了。