Xamarin在iOS上使用UIWebView弃用表单 [英] Xamarin Forms UIWebView Deprecation on iOS
问题描述
我遵循了以下文章的建议:
I have followed advice from the following article:
https://devblogs.microsoft.com/xamarin/uiwebview-deprecation-xamarin-forms/
我使用的是以下版本的正确版本:-Xamarin表格@ 4.6.0.726-Xamarin iOS @ 13.16.0.13
I am using the correct versions of: - Xamarin Forms @ 4.6.0.726 - Xamarin iOS @ 13.16.0.13
我已将mTouch参数中的标志设置为--optimize = experimental-xforms-product-type --warn-on-type-ref = UIKit.UIWebView
I have set the flag in the mTouch arguments as --optimize=experimental-xforms-product-type --warn-on-type-ref=UIKit.UIWebView
我已将链接器设置为仅链接框架SDK"
I have set the Linker to 'Link Framework SDKs Only'
但是,我仍然收到Apple发出的电子邮件,其中规定了UIWebView的问题.
However I still receive the email from Apple stipulating the issue with UIWebView.
这使我相信我的代码仍然在某处引用了UIWebView.
This leads me to believe that my code still has references to the UIWebView somewhere.
我收到的关于这4x的警告-警告MT1502:"Xamarin.Forms.Platform.iOS"中已经存在一个或多个键入"UIKit.UIWebView"的引用,版本= 2.0.0.0,文化=中性,链接前为PublicKeyToken = null"
The warnings I get for this 4x - Warning MT1502: One or more reference(s) to type 'UIKit.UIWebView' already exists inside 'Xamarin.Forms.Platform.iOS, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null' before linking
但是我不知道如何继续查找并删除这些引用.
But I don't know how to go ahead and find then remove these references.
请有人可以提供帮助吗?
Please can somebody offer some help?
提前谢谢!
推荐答案
--optimize = experimental-xforms-product-type似乎并未从Xamarin.Forms.Platform.iOS中删除对UIWebView的引用.当使用--optimize = force-rejected-types-removal时,它可以工作.我已提交给Apple,但没有收到有关删除UIWebView的电子邮件.
It seems as though --optimize=experimental-xforms-product-type does not strip out references to UIWebView from Xamarin.Forms.Platform.iOS. When using --optimize=force-rejected-types-removal it works. I've submitted to Apple and I did not get the email about UIWebView removal.
这篇关于Xamarin在iOS上使用UIWebView弃用表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!