Bug 59621 - Failed to Compile the Generated Registrar Code
Summary: Failed to Compile the Generated Registrar Code
Status: RESOLVED ANSWERED
Alias: None
Product: iOS
Classification: Xamarin
Component: General ()
Version: XI 11.0 (xcode9)
Hardware: PC Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-09-20 18:40 UTC by Matt Cuda
Modified: 2017-09-20 21:10 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 ANSWERED

Description Matt Cuda 2017-09-20 18:40:31 UTC
/Users/mattc/ECMD_APPS/Datasource/MTOUCH: Error MT4109: Failed to compile the generated registrar code. Please file a bug report at http://bugzilla.xamarin.com (MT4109) (Datasource)


I receive this error when trying to compile against my iPhone.



=== Visual Studio Community 2017 for Mac (Preview) ===

Version 7.2 Preview (7.2 build 583)
Installation UUID: 6b9ef9ed-d2b7-4924-af14-49c39ebe7cac
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: Not installed
SDK: Not installed
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.Mac ===

Version: 3.8.0.26 (Visual Studio Community)

=== Xamarin.Android ===

Not Installed

=== 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

=== Xamarin.iOS ===

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

=== 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 John Miller [MSFT] 2017-09-20 18:55:20 UTC
Hi Matt,

Could you upload your full build log? If you also have a failing registrar.m file please attach that too. 

To get full build logs just set the log verbosity to diagnostic at the following locations:
- On Visual Studio for Mac: Preferences > Projects > Build
- On Visual Studio for Windows: Tools > Options > Projects and Solutions > Build and Run

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.

This looks like a compatibility issue with 10.14 and Xcode 9. After uploading your logs and file, you can most likely resolve this by updating Xcode 9 to the release version and switching to the Stable Channel for Xamarin.iOS 11 for Xcode 9 support.
Comment 2 John Miller [MSFT] 2017-09-20 19:04:23 UTC
Ignore the GM seed comment. Your Xcode does look OK.
Comment 3 Matt Cuda 2017-09-20 19:08:32 UTC
This appears to only be related to the version 7.2 preview.  I downgraded to the stable build and is is fine.  I also noticed that in the info.plist GUI, I could not target iOS 11 in the drop down.

At this point the problem is solved since I am on the stable build.
Comment 4 Sebastien Pouliot 2017-09-20 21:10:58 UTC
> Version: 10.14.0.26 (Visual Studio Community)

You need Xamarin.iOS 11.0 (or later) in order to use Xcode 9.0

A XI 11.2 build will soon be available on the beta channel to replace the 10.14 (d15.4) build. In the mean time only stable (or the latest 10.99 web previews) can be used.

Note that you also need to associated VSfM / XVS builds from the same channel.