Bug 59348 - Failed to compile generated Registrar code
Summary: Failed to compile generated Registrar code
Status: RESOLVED DUPLICATE of bug 59523
Alias: None
Product: iOS
Classification: Xamarin
Component: Xamarin.iOS.dll ()
Version: XI 10.12 (d15-3)
Hardware: PC Windows
: --- normal
Target Milestone: Future Cycle (TBD)
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-09-08 16:19 UTC by vincent colliot
Modified: 2017-09-18 19:58 UTC (History)
5 users (show)

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


Attachments
Build error ouptput (62.72 KB, text/plain)
2017-09-08 16:19 UTC, vincent colliot
Details
Failed to compile generated registrar code (2.83 MB, text/plain)
2017-09-14 01:22 UTC, shuklaa
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 59523

Description vincent colliot 2017-09-08 16:19:09 UTC
Created attachment 24655 [details]
Build error ouptput

While building for the iPad this compilation error pop up:
Failed to compile the generated registrar code. Please file a bug report at http://bugzilla.xamarin.com	BlueEye.Mobile.eJobCard			

I put the logs as an attachment of this bug report.

The mentionned classes in the clang error log are generic classes inheriting from UIView.
Comment 1 Manuel de la Peña [MSFT] 2017-09-11 11:08:09 UTC
Hello, can you please provide a little more of information so that we could debug the issue. 

On Visual Studio Windows you also want to add `-v -v -v -v` to the mtouch additional arguments by right-clicking the project in the solution explorer and selecting `Properties`.
Note: this is done automatically on Visual Studio for Mac when the log verbosity is set to diagnostic.

Easiest way to get exact version information:
- On Visual Studio for Mac: "Visual Studio" menu, "About Visual Studio" item, "Show Details" button.
- On Visual Studio for Windows: "Help menu", "About Microsoft Visual Studio" item.
Then copy/paste the version information (you can use the "Copy Information" button).
Comment 2 shuklaa 2017-09-14 01:15:12 UTC
Adding more logs to it. I noticed this on my Mac, after updating to Xcode and new Visual Studio for mac updates from stable channel.
Comment 3 shuklaa 2017-09-14 01:22:31 UTC
Created attachment 24742 [details]
Failed to compile generated registrar code
Comment 4 Manuel de la Peña [MSFT] 2017-09-15 14:28:53 UTC
thanks for the complete logs. Will take a look and will get back to you asap.
Comment 5 Alex Soto [MSFT] 2017-09-15 19:54:06 UTC
This looks super close to this bug #59523, can you please share all of your version information?

The easiest way to get exact version information:
- On Visual Studio for Mac: "Visual Studio" menu, "About Visual Studio" item, "Show Details" button.
- On Visual Studio for Windows: "Help menu", "About Microsoft Visual Studio" item.
Then copy/paste the version information (you can use the "Copy Information" button).
Comment 6 Manuel de la Peña [MSFT] 2017-09-18 11:32:55 UTC
@alex from the first logs, we know that we have /Library/Frameworks/Xamarin.iOS.framework/Versions/10.12.0.20 (also from the second ones, but it is easier from the initial ones, less noise)
Comment 7 Alex Soto [MSFT] 2017-09-18 13:47:42 UTC
Yup, just curious on what Xcode is being used here :) and the steps provided in comment #5 would give us all the info
Comment 8 shuklaa 2017-09-18 15:15:41 UTC
HEre is the full details of my system that is causing this bug:

Visual Studio Enterprise 2017 for Mac
Version 7.1.3 (build 1)
Installation UUID: 4f26ca11-7974-48a2-aaee-774541324b2e
Runtime:
	Mono 5.2.0.224 (d15-3/14f2c81) (64-bit)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 502000224

NuGet
Version: 4.3.0.2418

.NET Core
Runtime: /usr/local/share/dotnet/dotnet
Runtime Versions:
	1.1.1
	1.0.4
SDK: /usr/local/share/dotnet/sdk/1.0.3/Sdks
SDK Version: 1.0.3
MSBuild SDKs: /Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/msbuild/15.0/bin/Sdks

Xamarin.Profiler
Version: 1.5.5
Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler

Xamarin.Android
Version: 7.4.3.1 (Visual Studio Enterprise)
Android SDK: /Users/a0718250/Library/Developer/Xamarin/android-sdk-macosx
	Supported Android versions:
		6.0 (API level 23)
		7.0 (API level 24)
		7.1 (API level 25)

SDK Tools Version: 25.2.5
SDK Platform Tools Version: 25.0.5
SDK Build Tools Version: 25.0.3

Java SDK: /usr
java version "1.8.0_112"
Java(TM) SE Runtime Environment (build 1.8.0_112-b16)
Java HotSpot(TM) 64-Bit Server VM (build 25.112-b16, mixed mode)

Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL

Apple Developer Tools
Xcode 9.0 (13247)
Build 9A235

Xamarin.iOS
Version: 10.12.3.3 (Visual Studio Enterprise)
Hash: 8a391069
Branch: d15-3
Build date: 2017-08-28 16:51:11-0400

Xamarin Inspector
Version: 1.2.2
Hash: b71b035
Branch: d15-1
Build date: Fri, 21 Apr 2017 17:57:12 GMT

Xamarin.Mac
Version: 3.6.3.3 (Visual Studio Enterprise)

Build Information
Release ID: 701030001
Git revision: ba94259b26824844f4d2c76c794738eb75b85726
Build date: 2017-08-25 16:28:43-04
Xamarin addins: ee499cfb63ae406b1e394bf6a159ad2953f7fab6
Build lane: monodevelop-lion-d15-3

Operating System
Mac OS X 10.12.6
Darwin 16.7.0 Darwin Kernel Version 16.7.0
    Thu Jun 15 17:36:27 PDT 2017
    root:xnu-3789.70.16~2/RELEASE_X86_64 x86_64

Enabled user installed addins
Android Signature Tool 2.1.2
NuGet Package Explorer 0.2
NuGet Package Management Extensions 0.12.2
Redth's Addins 1.0.9



As for Xcode:
Version 9.0 (9A235)

Xcode 9 GM seed
Includes the latest beta macOS, iOS, watchOS, and tvOS SDKs.
Release Notes 9A235 Sep 12, 2017



Hope this helps.
Comment 9 Alex Soto [MSFT] 2017-09-18 15:30:52 UTC
And this is what I suspected you are using X.I 10.12.3.3 with Xcode 9 GM.

Xamarin.iOS
Version: 10.12.3.3 (Visual Studio Enterprise)
Hash: 8a391069
Branch: d15-3
Build date: 2017-08-28 16:51:11-0400

Apple Developer Tools
Xcode 9.0 (13247)
Build 9A235

Tha above is an unsupported configuration, in order to use Xcode 9 you need Xamarin.iOS 11.0 or above which you can find here:

We have a preview release with Xcode 9 GM support here: https://releases.xamarin.com/preview-xcode-9-gm-ios-11-support-preview-9/

Or if you want to get our latest Xcode 9 GM work you can find it here.
https://jenkins.mono-project.com/view/Xamarin.MaciOS/job/xamarin-macios-builds-xcode9/

*** This bug has been marked as a duplicate of bug 59523 ***
Comment 10 shuklaa 2017-09-18 16:22:31 UTC
Looks like I was able to archive a build. 
Great. 
How can I prevent this from happening in future?
Comment 11 Alex Soto [MSFT] 2017-09-18 19:58:58 UTC
Just try to keep a matching version of Stable Xcode with Stable Xamarin.iOS, for example as of today Sept 18 Xcode 9 is still in GM state (not stable) it is like an RC (Release Candidate) once Xcode 9 hits stable Xamarin.iOS will follow with the release of a stable Xamarin.iOS.

You can follow these matching releases on our blog @ https://releases.xamarin.com/