Closed Juansero29 closed 5 years ago
MBAutoComplete is common control for xamarin ios. Register name can be changed for prevent conflicts as soon as possible
I will try that tomorrow! I'll keep you updated
I haven't have got the time yet to test this out, but it should probably work! I think it is safe to close the bug,
Describe the bug When using the NuGet package Xamarin.Forms.InputKit (v3.0.7) and Xfx.Controls(v1.2.1) and trying to deploy an app, I get an error from registration of native controls since they have the same name. I have checked in both NuGets and they do have the same name, but not only that, they have the same code!
XfX:
InputKit:
Hence, it causes the following error when deploying the project for iOS :
Error
Could not register the assembly 'Xfx.Controls.iOS': error MT4118: Cannot register two managed types ('MBAutoComplete.MbAutoCompleteTextField, Xfx.Controls.iOS' and 'Plugin.InputKit.Platforms.iOS.Controls.AutoCompleteTextField, Plugin.InputKit') with the same native name ('MbAutoCompleteTextField').
This shouldn't be happening. I post the issue here because the Xfx control is there since July 2018 whereas the InputKit control is there since March 2019. Which means @enisn has taken the control and just copied it into InputKit. I don't know if you have the right to that, but anyways, I think you should either remove this control from your NuGet package or change the name of the Register line so that the two NuGet packages can coexist together in the same project.
To Reproduce Steps to reproduce the behavior:
Expected behavior The project should build and deploy without any problems
Additional context My app uses the SelectionView from InputKit, but also uses entries and other controls from Xfx.Controls, so I need both NuGets to be present in my project.