Niels
Niels

Reputation: 1716

Failed to resolve "Xamarin.Forms.Platform.iOS.WebViewRenderer" after upgrading to Xamarin.Forms 5.0.0.2012

I just upgraded to Xamarin.Forms 5.0.0.2012 and when trying to build the iOS project I get the following error:

Error MT2002: Failed to resolve "Xamarin.Forms.Platform.iOS.WebViewRenderer" reference from "Xamarin.Forms.Platform.iOS, Version=1.4.0.0, Culture=neutral, PublicKeyToken=null" (MT2002)

I am not using any references to WebViewRenderer anywhere. I have also looked at this documentation and added the mtouch argument, still the same issue.

Any ideas?

Upvotes: 0

Views: 616

Answers (2)

Niels
Niels

Reputation: 1716

Turned out I was using a package that needed to be updated (MR.Gestures).

I found out by typing WebViewRender in a class without the using Xamarin.Forms.Platform.iOS. There were 2 resolve options: Xamarin.Forms.Platform.iOS.WebViewRender and MR.Gesture.WebViewRender So that was my hint. Updated MR.Gestures and the problem was solved.

Upvotes: 1

magicandre1981
magicandre1981

Reputation: 28826

According to the link, this class is removed in Xamarin.Forms 5:

In Xamarin.Forms 5.0, the WebViewRenderer class has been removed. Therefore, Xamarin.Forms 5.0 doesn't contain a reference to the UIWebView control.

Upvotes: 0

Related Questions