Bug 46136 - Error MT4109
Summary: Error MT4109
Alias: None
Product: iOS
Classification: Xamarin
Component: General ()
Version: XI 10.2 (iOS 10.1)
Hardware: PC Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
Depends on:
Reported: 2016-10-28 14:04 UTC by Integra Sistemi
Modified: 2016-11-02 09:34 UTC (History)
3 users (show)

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

build log (159.16 KB, text/plain)
2016-11-02 08:46 UTC, Integra Sistemi
my project (16.03 KB, application/xml)
2016-11-02 08:47 UTC, Integra Sistemi

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 Integra Sistemi 2016-10-28 14:04:38 UTC
I have this error:

/Users/venere/Projects/Amministratore/MTOUCH: Error MT4109: Failed to compile the generated registrar code. Please file a bug report at http://bugzilla.xamarin.com (MT4109) 
when I run on device
Comment 1 Vincent Dondain [MSFT] 2016-10-28 14:14:57 UTC

I don't know if you are using Visual Studio or Xamarin Studio but in XS if you double click on the error it sends you here: https://developer.xamarin.com/guides/ios/troubleshooting/mtouch-errors/#MT4109_Failed_to_compile_the_generated_registrar_code._Please_file_a_bug_report_at_httpbugzilla.xamarin.com

This is where we're able to put a little bit more information about MT errors.

Therefore as it is explained in the above link we'd need your build log which contains the output from the native compiler and explains why the code isn't compiling as well as a test case or your project to reproduce the issue.

Comment 2 Integra Sistemi 2016-11-02 08:46:49 UTC
Created attachment 18298 [details]
build log

This is build log of my project
Comment 3 Integra Sistemi 2016-11-02 08:47:51 UTC
Created attachment 18299 [details]
my project

this is the project
Comment 4 Rolf Bjarne Kvinge [MSFT] 2016-11-02 09:34:54 UTC
You're using an API that uses UIPress:

		/Users/venere/Projects/Amministratore/obj/iPhone/Debug/build-iphone5.2-10.0.2/mtouch-cache/registrar.m:3865:124: error: unknown type name 'UIPress'\
		static BOOL native_to_managed_trampoline_81 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UIGestureRecognizer * p0, UIPress * p1, const char *r0, const char *r1, const char *r2, const char *r3)\

and at the same time you're using Xcode 7.0 (which contains the iOS 9.0 SDK):

> 		Using Xcode 7.0.1 found in /Applications/Xcode.app/Contents/Developer\

the problem is that UIPress was introduced in iOS 9.1 (even though Apple's documentation states it was introduced in iOS 9.0, the class is nowhere to be found in the iOS 9.0 SDK).

So the fix is simple: just update your Xcode.