Bug 46916 - Failed to compile the generated registrar code.
Summary: Failed to compile the generated registrar code.
Status: RESOLVED DUPLICATE of bug 40871
Alias: None
Product: Forms
Classification: Xamarin
Component: iOS ()
Version: 2.3.2
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-11-13 12:37 UTC by Michael
Modified: 2016-11-14 15:27 UTC (History)
3 users (show)

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

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 Michael 2016-11-13 12:37:35 UTC
Hi,

I am trying to make a release build of my Xamarin Forms application on visual studio 2015 community but the build always results in:
"Error	Failed to compile the generated registrar code. Please file a bug report at http://bugzilla.xamarin.com"

I have the following output in the build window:

Process exited with code 1, command:
3>  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++  -Wno-receiver-forward-class -gdwarf-2 -I/Library/Frameworks/Xamarin.iOS.framework/Versions/10.2.0.4/SDKs/MonoTouch.iphoneos.sdk/usr/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk -Qunused-arguments -miphoneos-version-min=6.0 -arch arm64 -c -o /Users/michaelvowles/Library/Caches/Xamarin/mtbs/builds/CMI.iOS/e90231db4de804dba40b6a46fa5985a6/obj/iPhone/Release/mtouch-cache/registrar.arm64.o -x objective-c++ /Users/michaelvowles/Library/Caches/Xamarin/mtbs/builds/CMI.iOS/e90231db4de804dba40b6a46fa5985a6/obj/iPhone/Release/mtouch-cache/64/registrar.m
3>  /Users/michaelvowles/Library/Caches/Xamarin/mtbs/builds/CMI.iOS/e90231db4de804dba40b6a46fa5985a6/obj/iPhone/Release/mtouch-cache/64/registrar.m:2874:124: error: unknown type name 'UIPress'
3>  static BOOL native_to_managed_trampoline_62 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UIGestureRecognizer * p0, UIPress * p1, const char *r0, const char *r1, const char *r2, const char *r3)
3>                                                                                                                             ^ 
3>  /Users/michaelvowles/Library/Caches/Xamarin/mtbs/builds/CMI.iOS/e90231db4de804dba40b6a46fa5985a6/obj/iPhone/Release/mtouch-cache/64/registrar.m:9288:74: error: expected a type
3>          -(BOOL) gestureRecognizer:(UIGestureRecognizer *)p0 shouldReceivePress:(UIPress *)p1;
3>                                                                                  ^ 
3>  /Users/michaelvowles/Library/Caches/Xamarin/mtbs/builds/CMI.iOS/e90231db4de804dba40b6a46fa5985a6/obj/iPhone/Release/mtouch-cache/64/registrar.m:9330:74: error: expected a type
3>          -(BOOL) gestureRecognizer:(UIGestureRecognizer *)p0 shouldReceivePress:(UIPress *)p1
3>                                                                                  ^ 
3>  /Users/michaelvowles/Library/Caches/Xamarin/mtbs/builds/CMI.iOS/e90231db4de804dba40b6a46fa5985a6/obj/iPhone/Release/mtouch-cache/64/registrar.m:9333:10: error: no matching function for call to 'native_to_managed_trampoline_62'
3>                  return native_to_managed_trampoline_62 (self, _cmd, &managed_method, p0, p1, "UIKit.UIGestureRecognizer, Xamarin.iOS", "UIKit.UIPress, Xamarin.iOS", "UIKit.UIGestureRecognizer+_UIGestureRecognizerDelegate, Xamarin.iOS", "ShouldReceivePress");
3>                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3>  /Users/michaelvowles/Library/Caches/Xamarin/mtbs/builds/CMI.iOS/e90231db4de804dba40b6a46fa5985a6/obj/iPhone/Release/mtouch-cache/64/registrar.m:2874:13: note: candidate function not viable: no known conversion from 'id' to 'int *' for 5th argument
3>  static BOOL native_to_managed_trampoline_62 (id self, SEL _cmd, MonoMethod **managed_method_ptr, UIGestureRecognizer * p0, UIPress * p1, const char *r0, const char *r1, const char *r2, const char *r3)
3>              ^ 
3>  4 errors generated.
3>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(696,3): error : Failed to compile the generated registrar code. Please file a bug report at http://bugzilla.xamarin.com
Comment 1 Rolf Bjarne Kvinge [MSFT] 2016-11-14 15:27:02 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 ***