Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xfx.Controls can't be used along Xamarin.Forms.InputKit #120

Closed
Juansero29 opened this issue Apr 16, 2019 · 4 comments
Closed

Xfx.Controls can't be used along Xamarin.Forms.InputKit #120

Juansero29 opened this issue Apr 16, 2019 · 4 comments
Labels
bug Something isn't working target-xamarin

Comments

@Juansero29
Copy link

Juansero29 commented Apr 16, 2019

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:
image

InputKit:

image

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:

  1. Create a new solution, Xamarin.Forms.InputKit (v3.0.7) and Xfx.Controls(v1.2.1)
  2. Deploy the solution on iOS
  3. See error

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.

@enisn
Copy link
Owner

enisn commented Apr 17, 2019

MBAutoComplete is common control for xamarin ios. Register name can be changed for prevent conflicts as soon as possible

@enisn enisn added the bug Something isn't working label Apr 17, 2019
@enisn
Copy link
Owner

enisn commented Apr 17, 2019

Can you try build with new version v3.0.8 ?

@Juansero29
Copy link
Author

I will try that tomorrow! I'll keep you updated

@Juansero29
Copy link
Author

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,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working target-xamarin
Projects
None yet
Development

No branches or pull requests

2 participants