Iconize icon indicating copy to clipboard operation
Iconize copied to clipboard

Build failure with Xamarin.Forms 4

Open sander1133 opened this issue 7 years ago • 3 comments

In Xamarin.Forms 4 i get the build error: Can't resolve the reference 'UIKit.UIBarButtonItem Xamarin.Forms.Platform.iOS.ToolbarItemExtensions::ToUIBarButtonItem(Xamarin.Forms.ToolbarItem,System.Boolean)'.

Seems like something has changed in de the Xamarin Api.

sander1133 avatar Dec 04 '18 12:12 sander1133

ToUIBarButtonItem has gained an extra parameter. Both are optional so I'm not sure why it fails but that passing false as the second parameter should work.

https://github.com/xamarin/Xamarin.Forms/blob/0a67f8b0a105fbf56b6ac704cfc283840a189817/Xamarin.Forms.Platform.iOS/Extensions/ToolbarItemExtensions.cs#L12

EDIT Optional parameters are inserted at compile time, so adding an extra optional parameter is as breaking as adding a non-optional parameter).

GalaxiaGuy avatar Dec 05 '18 13:12 GalaxiaGuy

Yep, same problem with recent 3.5 release. Guess we just need a recompile and publish @jsmarcus

geskill avatar Feb 06 '19 16:02 geskill

Pushing a 3.5 build to nuget now

jsmarcus avatar Feb 06 '19 17:02 jsmarcus