Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
If it has used same namespace as native ios. Xamarin.ios beta did appear an error below. This report has attached an example file.
Cannot register two managed types ('Test.Native.UIApplication' and 'MonoTouch.UIKit.UIApplication') with the same native name ('UIApplication').
at MonoTouch.Registrar.Registrar.RegisterType (System.Type type, System.Collections.Generic.List`1 exceptions) [0x000ca] in /Developer/MonoTouch/Source/monotouch/src/ObjCRuntime/Registrar.cs:569
at MonoTouch.Registrar.Registrar.RegisterAssembly (System.Reflection.Assembly assembly) [0x0005b] in /Developer/MonoTouch/Source/monotouch/src/ObjCRuntime/Registrar.cs:776
Created attachment 3985 [details]
That's normal, only one `UIApplication` can be registered *correctly* with ObjC.
IOW if ObjC needs to calls UIApplication then it can only end up calling one managed type. If two are registred which one will it be ?
Earlier versions did not check for duplicates and that created weird random errors (depending on which one registered first). Newer versions will report an error.