上传 Xamarin 应用程序时无法解决弃用 UIWebView 警告 [英] Unable to Resolve Deprecation of UIWebView warning while uploading Xamarin application
问题描述
我已关注博客 https://devblogs.microsoft.com/xamarin/uiwebview-deprecation-xamarin-forms/ 删除我项目中的 UIWebView 依赖项.
I Have followed the blog https://devblogs.microsoft.com/xamarin/uiwebview-deprecation-xamarin-forms/ to remove the UIWebView dependency in my project.
根据文件
1)xamarin.forms 版本是 4.62)xamarin.ios 版本是 13.203)我在 mtouch Arguments 中添加了命令,链接器是 link All
1)xamarin.forms version is 4.6 2)xamarin.ios version is 13.20 3)I added the command in mtouch Arguments and linker is link All
我在上传构建以进行试飞时仍然收到警告
I still got warning while upoading build to test flight
然后我遵循了这个文档https://docs.microsoft.com/en-us/xamarin/ios/release-notes/13/13.16#help-with-uiwebview-deprecation 在这里我们可以找出 UIWebView 是否仍然存在正在我们的应用程序中使用.我在构建输出中得到以下结果.
I then followed this document https://docs.microsoft.com/en-us/xamarin/ios/release-notes/13/13.16#help-with-uiwebview-deprecation where we can find out whether UIWebView is still being used in our application.I am getting below in the build output.
MTOUCH : 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
我不知道为什么 Xamarin.Forms.Platform.iOS 中有引用,因为根据博客,xamarin 包已更新为 4.6.
I am not sure why there is reference in Xamarin.Forms.Platform.iOS as xamarin package is updated to 4.6 as per the blog.
谁能帮我摆脱这个警告?
Can anyone please help me to get rid of this warning?
推荐答案
感谢大家的建议.以下是对我有用的内容.
Thank you all for your suggestions. Below is what worked for me.
在存储库级别运行 grep -r UIWebview .
.它将显示 .sln 和第三方包中的引用列表
Run grep -r UIWebview .
on repository level. It will show the list of references in .sln and third party packages
删除或更新第三方库.Igore bin 和 obj 文件夹
Remove or update third party libraries. Igore bin and obj folders
对我来说,我必须
1.移除已弃用的 scanbot.xamarin.ios SDK 并添加 scanbot.xamarin pkg
1.Remove deprecated scanbot.xamarin.ios SDK and add scanbot.xamarin pkg
2. 删除冰球应用 SDK,因为它已被弃用且没有任何更新
2.Remove hockey app SDK as it was deprecated and didn’t have any updates
3.删除googleanalytics SDK,因为它没有在项目中使用
3.Remove googleanalytics SDK as it wasn’t being used in the project
这篇关于上传 Xamarin 应用程序时无法解决弃用 UIWebView 警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!