xamarin / Xamarin.Social

Xamarin.Social
Apache License 2.0
124 stars 74 forks source link

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

Closed rolfbjarne closed 10 years ago

rolfbjarne commented 11 years ago

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.

ermau commented 11 years ago

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 commented 11 years ago

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

dalexsoto commented 10 years ago

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 commented 10 years ago

Fixed in ca8247629f7