Bug 59545 - MT4109 Failed to compile the generated registrar code
Summary: MT4109 Failed to compile the generated registrar code
Status: RESOLVED ANSWERED
Alias: None
Product: iOS
Classification: Xamarin
Component: Tools ()
Version: XI 10.14 (d15-4)
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-09-17 16:16 UTC by Christian Seiler
Modified: 2017-09-21 14:08 UTC (History)
5 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 ANSWERED

Description Christian Seiler 2017-09-17 16:16:38 UTC
I am receiving the Error message below when trying to compile my iOS app (for iPhone as well as iPhoneSimulator).

/Users/christianseiler/Developer/ETCS/iOS/MTOUCH: Error MT4109: Failed to compile the generated registrar code. Please file a bug report at http://bugzilla.xamarin.com (MT4109) (ETCS.iOS)


I'm using:
=== Visual Studio Community 2017 for Mac (Preview) ===

Version 7.2 Preview (7.2 build 583)
Installation UUID: 9cf08c9e-ecdc-4432-9467-cdc387f7a203
Runtime:
	Mono 5.4.0.174 (2017-06/1afb931de69) (64-bit)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 504000174

=== NuGet ===

Version: 4.3.0.4199

=== .NET Core ===

Runtime: /usr/local/share/dotnet/dotnet
Runtime Version: 1.0.1
SDK: /usr/local/share/dotnet/sdk/1.0.0-preview2-003131/Sdks
SDK Version: 1.0.0-preview2-003131
MSBuild SDKs: /Library/Frameworks/Mono.framework/Versions/5.4.0/lib/mono/msbuild/15.0/bin/Sdks

=== Xamarin.Profiler ===

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

=== Apple Developer Tools ===

Xcode 9.0 (13247)
Build 9A235

=== Xamarin.iOS ===

Version: 10.14.0.26 (Visual Studio Community)
Hash: 416f778f
Branch: d15-4
Build date: 2017-08-25 17:30:05-0400

=== Xamarin.Mac ===

Version: 3.8.0.26 (Visual Studio Community)

=== Xamarin.Android ===

Version: 7.5.0.15 (Visual Studio Community)
Android SDK: /Users/christianseiler/Library/Developer/Xamarin/android-sdk-macosx
	Supported Android versions:
		6.0 (API level 23)
		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_101"
Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)

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

=== Xamarin Inspector ===

Version: 1.3.0
Hash: 8c298a5
Branch: 1.3-release
Build date: Thu, 14 Sep 2017 21:21:26 GMT
Client compatibility: 1

=== Build Information ===

Release ID: 702000583
Git revision: 861d3eb8f64655762b85235dde49874645208f51
Build date: 2017-09-05 15:23:48-04
Xamarin addins: 838dc0d12bdbb0407ea44b7bfd11fbe30ddac07b
Build lane: monodevelop-lion-d15-4

=== 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
Comment 1 Manuel de la Peña [MSFT] 2017-09-19 10:16:48 UTC
Hello,

Thanks a lot for providing the environment information. Could you please provide the verbose logs from the build and, if possible, a small testing app?

To get full build logs just set the log verbosity to diagnostic at the following location: Preferences > Projects > Build
Comment 2 Dustin 2017-09-20 20:20:22 UTC
Getting same issue.
Comment 3 Sebastien Pouliot 2017-09-21 03:01:58 UTC
> Version: 10.14.0.26 (Visual Studio Community)

You need to use XI 11.0 (stable) or wait for the beta channel to offer 11.2 (to replace 10.14) in order to use Xcode 9.

The alternative is to continue using Xcode 8.3 until you are ready to upgrade.
Comment 4 Dustin 2017-09-21 14:08:44 UTC
Switched to stable worked for me.