Bug 40075 - MTOUCH error MT4109 : failed tu compile the generated registar code
Summary: MTOUCH error MT4109 : failed tu compile the generated registar code
Status: RESOLVED ANSWERED
Alias: None
Product: iOS
Classification: Xamarin
Component: Xamarin.iOS.dll ()
Version: XI 9.0 (iOS9)
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-04-04 08:57 UTC by Simon
Modified: 2016-04-04 09:48 UTC (History)
3 users (show)

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


Attachments
Error detail (too long for the comment) (193.73 KB, text/plain)
2016-04-04 08:57 UTC, Simon
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 ANSWERED

Description Simon 2016-04-04 08:57:31 UTC
Created attachment 15592 [details]
Error detail (too long for the comment)

When I'm trying to compile on physical iPhone, i get the following error (see attachment) (on simulator it's running without any problems).

Can somebody help me ? Thanks.
Comment 1 Rolf Bjarne Kvinge [MSFT] 2016-04-04 09:48:57 UTC
It looks like you're using an API that uses UIPress:

		/Users/SID/Projects/testproject/agres/Agres/iOS/obj/iPhone/Debug/build-iphone8.1-9.3.1/mtouch-cache/registrar.m:516:124: error: unknown type name 'UIPress'
		static BOOL native_to_managed_trampoline_16 (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 using Xcode 7.0:

		Using Xcode 7.0 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.