Search code examples
visual-studioxamarin.formsxamarin.iostelerik

UIWebView warning in Xamarin Forms iOS


Sending my .ipa to Apple, I received this warning:

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).

I followed carefully this solution

  • Forms 4.5 or newer.
  • Xamarin.iOS 13.10.0.17
  • Visual Studio 16.4.3
  • This flag in the additional mtouch arguments field: --optimize=experimental-xforms-product-type

Still getting the warning.

I think it is because I references Telerik controls in my project, but I also followed this solution

No luck yet

enter image description here


Solution

  • This post has the answer

    In my project I have as a nuget a reference to

    Xamarin.Forms.Visual.Material

    and this internally references to

    Xamarin.iOS.MaterialComponents

    The version of the components was old (72) so I added as a new nuget the latest version Xamarin.iOS.MaterialComponents, (nowadays it is 92), uploaded a new .IPA and the error dissapeared.