Bug 26927 - Error MT4111 The registrar cannot build a signature for type MapKit.IMKAnnotation[]
Summary: Error MT4111 The registrar cannot build a signature for type MapKit.IMKAnnota...
Alias: None
Product: iOS
Classification: Xamarin
Component: Xamarin.iOS.dll ()
Version: XI 8.6.0
Hardware: PC Mac OS
: Normal normal
Target Milestone: Untriaged
Assignee: Rolf Bjarne Kvinge [MSFT]
Depends on:
Reported: 2015-02-10 15:59 UTC by John Miller [MSFT]
Modified: 2015-02-16 06:08 UTC (History)
5 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and 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 Links.

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.

Related Links:

Description John Miller [MSFT] 2015-02-10 15:59:20 UTC

   A compile error occurs when building for device while implementing a custom MKMapView subclass and overriding the methods AddAnnotation and AddAnnotations.

**Steps to Reproduce:**

   1. Create a Unified iOS app
   2. Add this code:

public class CustomMapView : MKMapView
        public CustomMapView()

        public override void AddAnnotation(IMKAnnotation annotation)

        public override void AddAnnotations(params IMKAnnotation[] annotations)

   3. Build the app for Device (compiles OK for simulator)

**Actual Results:**

   > /Users/johnmiller/Downloads/MapDemo/MapDemo/MTOUCHTASK: Error MT4111: The registrar cannot build a signature for type `MapKit.IMKAnnotation[]' in method `MapDemo.CustomMapView.AddAnnotations`. (MT4111) (MapDemo)

**Expected Results:**

   No error. 

**Build Date & Platform:**

   Mono 3.12
   Xcode 6.1.1
Comment 1 Rolf Bjarne Kvinge [MSFT] 2015-02-11 10:04:05 UTC

maccore/master: 5b01d1d0827cc523e6c1f160684dc4832da85890
Comment 2 Udham Singh 2015-02-12 10:42:24 UTC
I have checked this issue with Xamarin.iOS (Master) and this issue has been fixed. 

Hence closing this issue. Screencast : http://www.screencast.com/t/8FMiAoUb1

Environment Info :

Mac OS X 10.9.5
Xamarin Studio 5.7.1 (build 17)
Mono 3.12.0 ((detached/a813491)
GTK+ 2.24.23 (Raleigh theme)
Xcode 6.1.1 (6611)
Xamarin.iOS (Business Edition)
Comment 3 Udham Singh 2015-02-16 06:08:46 UTC
I have also checked this issue with Xamarin.iOS (Release) and this issue has been fixed with build Xamarin.iOS (Release) also.

Screencast : http://www.screencast.com/t/C7Q9mXBBCps