Bug 47629 - MT4109: Failed to compile the generated registrar code
Summary: MT4109: Failed to compile the generated registrar code
Status: RESOLVED DUPLICATE of bug 40871
Alias: None
Product: iOS
Classification: Xamarin
Component: MSBuild ()
Version: XI 10.4 (C9)
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-11-22 13:46 UTC by Jc Bremond
Modified: 2016-11-23 09:10 UTC (History)
2 users (show)

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


Attachments
Build log + setup.txt + registrar.m (42.27 KB, application/zip)
2016-11-22 13:46 UTC, Jc Bremond
Details


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:
Status:
RESOLVED DUPLICATE of bug 40871

Description Jc Bremond 2016-11-22 13:46:17 UTC
Created attachment 18596 [details]
Build log + setup.txt + registrar.m

When trying to deploy a Xamarin.Forms application into a physical device I get the following error:

	/Users/843/Projects/_git/Astreintes/iOS/obj/iPhone/Debug/mtouch-cache/64/registrar.m:6296:74: error: expected a type
		        -(BOOL) gestureRecognizer:(UIGestureRecognizer *)p0 shouldReceivePress:(UIPress *)p1;
		                                                                                ^ 
		/Users/843/Projects/_git/Astreintes/iOS/obj/iPhone/Debug/mtouch-cache/64/registrar.m:6338:74: error: expected a type
		        -(BOOL) gestureRecognizer:(UIGestureRecognizer *)p0 shouldReceivePress:(UIPress *)p1
		                                                                                ^ 
		/Users/843/Projects/_git/Astreintes/iOS/obj/iPhone/Debug/mtouch-cache/64/registrar.m:6341:10: error: no matching function for call to 'native_to_managed_trampoline_28'
		                return native_to_managed_trampoline_28 (self, _cmd, &managed_method, p0, p1, "UIKit.UIGestureRecognizer, Xamarin.iOS", "UIKit.UIPress, Xamarin.iOS", "UIKit.UIGestureRecognizer+_UIGestureRecognizerDelegate, Xamarin.iOS", "ShouldReceivePress");
		                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
		/Users/843/Projects/_git/Astreintes/iOS/obj/iPhone/Debug/mtouch-cache/64/registrar.m:1333:13: note: candidate function not viable: no known conversion from 'id' to 'int *' for 5th argument
		static BOOL native_to_managed_trampoline_28 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UIGestureRecognizer * p0, UIPress * p1, const char *r0, const char *r1, const char *r2, const char *r3)
		            ^ 
		4 errors generated.
		
MTOUCH: error MT4109: Failed to compile the generated registrar code. Please file a bug report at http://bugzilla.xamarin.com
	Task "MTouch" execution -- FAILED
	Done building target "_CompileToNative" in project "/Users/843/Projects/_git/Astreintes/iOS/Astreinte.iOS.csproj".-- FAILED


TIA
jc bremond
Comment 1 Rolf Bjarne Kvinge [MSFT] 2016-11-22 15:32:46 UTC
See https://bugzilla.xamarin.com/show_bug.cgi?id=40871#c4 for the fix.

*** This bug has been marked as a duplicate of bug 40871 ***
Comment 2 Jc Bremond 2016-11-23 09:10:45 UTC
Thank you for your prompt response !

and Sorry for the noise ...

Regards.
jc