Bug 44926 - MTOUCH: error MT4109: Failed to compile the generated registrar code.
Summary: MTOUCH: error MT4109: Failed to compile the generated registrar code.
Alias: None
Product: iOS
Classification: Xamarin
Component: Tools ()
Version: XI 10.0 (iOS10)
Hardware: PC Mac OS
: --- normal
Target Milestone: (C9)
Assignee: rokvin
Depends on:
Reported: 2016-09-30 11:24 UTC by Volodymyr.Melnychenko
Modified: 2017-02-02 10:03 UTC (History)
4 users (show)

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

Env, registars, build log. (32.29 KB, application/zip)
2016-09-30 11:26 UTC, Volodymyr.Melnychenko

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 Volodymyr.Melnychenko 2016-09-30 11:24:31 UTC
We have problems with generated registars for iOS Device. (Maybe problem with binding for GCDAsyncSocket generated by Sharpie)
Comment 1 Volodymyr.Melnychenko 2016-09-30 11:26:49 UTC
Created attachment 17824 [details]
Env, registars, build log.
Comment 2 Rolf Bjarne Kvinge [MSFT] 2016-09-30 13:31:27 UTC
It looks like there is a problem with a few methods/properties in some of your classes:

* AcceptDialogNotification: parameters
* CasinoAlertNotification: params
* DialogMessageResponse: params
* ErrorNotification: errorParams
* AuthenticationService: getUrlsForURLTypes:

Could you attach the C# code for these classes?
Comment 3 Volodymyr.Melnychenko 2016-10-03 05:46:16 UTC
This methods return or accept ObjectiveC generic collections.

public NSArray<NSString> getParameters()

public NSArray<NSString> getParams()

public NSArray<NSString> getParams()

public NSArray<NSString> getErrorParams()

public void getUrls(NSArray<NSString> urlTypes)

Behaviour is strange because we have another method in AuthenticationService with ObjC generics and application compile w/o errors.

public void setSessionParameters(NSDictionary<NSString, NSString> mappings)
Comment 4 Volodymyr.Melnychenko 2016-10-04 04:53:47 UTC
Any updates?
Comment 5 Rolf Bjarne Kvinge [MSFT] 2016-10-04 17:31:48 UTC
I'm fairly sure that should work, I'll have a look.

But can you try to bind using "string[]" instead of "NSArray<NSString>"? That might be a workaround.
Comment 6 Rolf Bjarne Kvinge [MSFT] 2016-10-28 15:51:23 UTC
PR: https://github.com/xamarin/xamarin-macios/pull/1063