Bug 34052 - MTOUCH: Error MT4109: Failed to compile the generated registrar code. Please file a bug report at http://bugzilla.xamarin.com (MT4109)
Summary: MTOUCH: Error MT4109: Failed to compile the generated registrar code. Please ...
Status: VERIFIED FIXED
Alias: None
Product: iOS
Classification: Xamarin
Component: Xamarin.iOS.dll ()
Version: master
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: 9.0.2 (iOS9SR1)
Assignee: Rolf Bjarne Kvinge [MSFT]
URL:
Depends on:
Blocks:
 
Reported: 2015-09-18 05:19 UTC by ds
Modified: 2017-10-11 11:22 UTC (History)
5 users (show)

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


Attachments
SWRevealViewController Binding (1.36 MB, application/zip)
2015-09-18 05:19 UTC, ds
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:
VERIFIED FIXED

Description ds 2015-09-18 05:19:40 UTC
Created attachment 12939 [details]
SWRevealViewController Binding

HI,

I have project that is using a binding for the SWRevealViewController. (https://github.com/John-Lluch/SWRevealViewController).

Yesterday i update the binding to the unified API and it was working. Today i updated Xamarin and i suppose mtouch. Since then i am unable to compile the project.

Xamarin version is 5.9.7 build 9

Runtime:
Mono 4.0.4 ((detached/cb6d6b2)
GTK+ 2.24.23 (Raleigh theme)
Package version: 400040002

Apple Developer Tools
Xcode 6.1 (6604)
Build 6A1052d

Xamarin.iOS
Version: 9.0.1.18 (Indie Edition)
Hash: d230615
Branch: master
Build date: 2015-09-16 17:04:13-0400

Operating System
Mac OS X 10.9.5
Comment 1 ds 2015-09-18 05:46:39 UTC
After i downgraded back to the 8.10.5.26 version, the project is compiled and can be used on a real device.

On the simulator it fails when loading:

Could not create an native instance of the type 'SWRevealViewControllerBinding64.SWRevealViewController': the native class hasn't been loaded.
It is possible to ignore this condition by setting ObjCRuntime.Class.ThrowOnInitFailure to false.
Comment 2 Rolf Bjarne Kvinge [MSFT] 2015-09-18 12:06:39 UTC
Can you zip up and attach your project, so that I can reproduce this myself?
Comment 3 Rolf Bjarne Kvinge [MSFT] 2015-09-21 05:48:42 UTC
Fixed.

QA: unit tests were added.

maccore/master: 4e97a87fd6347a9df4703a2f15d74d07f1ad2512
Comment 5 Mohit Kheterpal 2015-09-22 11:43:23 UTC
I am able to reproduce this issue with XI 9.0.1.20 and observed that this issue is working fine with monotouch-9.3.0.63_eea1b70c31fee6c286ec876df38d363e44bbd15f.

Hence closing this issue by marking it as Verified.
Comment 8 Mohit Kheterpal 2015-10-08 06:21:07 UTC
I have checked this issue with C6 XI i.e. monotouch-9.2.0.85_7bcf0dacf2f066d7c433e5cebdbcfb1ca9cd1e12 and observed that this issue does not exist with C6 build of XI.
Comment 9 ds 2015-10-08 06:48:42 UTC
Hi,

Thanks for the update.

When should this update be on the stable channel if i may ask?

Thanks
Comment 10 Rolf Bjarne Kvinge [MSFT] 2015-10-09 04:23:18 UTC
This fix is included in the current version of Xamarin.iOS in the stable channel.