Skip to content
This repository has been archived by the owner on May 5, 2021. It is now read-only.

The sample tries to register two types with the same Objective-C name. #8

Closed
rolfbjarne opened this issue Jun 3, 2013 · 4 comments
Closed
Assignees
Labels
Milestone

Comments

@rolfbjarne
Copy link
Member

Exception thrown says:

error MT4118: Cannot register two managed types ('Xamarin.Controls.ProgressLabel, Xamarin.Auth.iOS' and 'Xamarin.Controls.ProgressLabel, Xamarin.Social.iOS') with the same native name ('Xamarin_Controls_ProgressLabel').

This happens because both Xamarin.Social.iOS and Xamarin.Auth.iOS have an internal type named "Xamarin.Controls.ProgressiveLabel", which is exported to ObjectiveC (because it inherits from NSObject).

To reproduce just run the sample in the simulator (using 6.3.5+).

The solution is to somehow not have two identically named types.

@ghost ghost assigned ermau Jun 3, 2013
@ermau
Copy link
Member

ermau commented Jun 4, 2013

I have tried this with XI 6.3.6.76 and was unable to reproduce this from the sample in source. Was this tested with the component?

@rolfbjarne
Copy link
Member Author

Yes, I downloaded the sample from the component store: http://components.xamarin.com/view/xamarin.social/

@dalexsoto
Copy link
Member

In order to repro this you gotta enable the static registrar on a device build (which might become the new standard very soonish) You can read more on this here

Just add --registrar:static to your device build and you should be able to repro the issue.

Alex

@ermau
Copy link
Member

ermau commented Dec 13, 2013

Fixed in ca82476

@ermau ermau closed this as completed Dec 13, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants