Bug 59558 - MT4109 build error: Failed to compile the generated registrar code
Summary: MT4109 build error: Failed to compile the generated registrar code
Status: RESOLVED ANSWERED
Alias: None
Product: iOS
Classification: Xamarin
Component: Mono runtime / AOT compiler ()
Version: XI 10.12 (d15-3)
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Zoltan Varga
URL:
Depends on:
Blocks:
 
Reported: 2017-09-18 13:48 UTC by mwpearce
Modified: 2017-11-14 16:01 UTC (History)
4 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 mwpearce 2017-09-18 13:48:47 UTC
Receiving the following error on build

/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.12.3.3/SDKs/MonoTouch.iphoneos.sdk/usr/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.0.sdk -Qunused-arguments -miphoneos-version-min=8.0 -arch arm64 -c -o /Users/mpearce/Documents/Repos/Mobility/PeopleFinder/iOS/obj/iPhone/Debug/device-builds/ipad5.4-11.0/mtouch-cache/arm64/registrar.o -x objective-c++ -DDEBUG /Users/mpearce/Documents/Repos/Mobility/PeopleFinder/iOS/obj/iPhone/Debug/device-builds/ipad5.4-11.0/mtouch-cache/registrar.m
    In file included from /Users/mpearce/Documents/Repos/Mobility/PeopleFinder/iOS/obj/iPhone/Debug/device-builds/ipad5.4-11.0/mtouch-cache/registrar.m:3:
    /Users/mpearce/Documents/Repos/Mobility/PeopleFinder/iOS/obj/iPhone/Debug/device-builds/ipad5.4-11.0/mtouch-cache/registrar.h:13:9: fatal error: 'QuartzCore/CAEmitterBehavior.h' file not found
    #import <QuartzCore/CAEmitterBehavior.h>
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    1 error generated.
    
    MTOUCH : error MT4109: Failed to compile the generated registrar code. Please file a bug report at http://bugzilla.xamarin.com

Error only seems to occur when building for a physical device.  In this case against an iPhone 6 and iPad Air 2 - both running iOS 11 GM Seed.
Comment 1 Sebastien Pouliot 2017-09-18 14:57:27 UTC
If you want to use Xcode 9 then please install XI 10.99 (GM based preview) until XI 11.0 (stable) is out.

Otherwise you can continue to use XI 10.12 with Xcode 8.3.x