Bug 60193 - 'QuartzCore/CAEmitterBehavior.h' file not found
Summary: 'QuartzCore/CAEmitterBehavior.h' file not found
Status: RESOLVED ANSWERED
Alias: None
Product: iOS
Classification: Xamarin
Component: General ()
Version: unspecified
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-10-15 00:49 UTC by Julie Misson
Modified: 2017-11-18 20:45 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 Julie Misson 2017-10-15 00:49:21 UTC
Hi I am getting the following error when trying to build in Mobile Centre. The build works on simulator and the iPhone connected to my iMac, but fails to build.  I have also included my Visual Studio for Mac setup, below the error and my package.config files.

I have tried the following:
Different versions of Xcode
Different versions of Monotouch
Reverting back to Mobile analytics 0.15.0, also tried to remove Analytics and Crashes as this is where the error seems to start from.
Converting back to an earlier version of Xamarin.forms
Removing the linking and adding it back in
Changing to the pre release version of Visual Studio
Amongst other things, nothing seems to have worked

I have also looked at the bug 57900

Error:

/Users/ci/agent/vstsagent/_work/1/s/packages/Microsoft.Azure.Mobile.Analytics.0.15.0/lib/Xamarin.iOS10/Microsoft.Azure.Mobile.Analytics.iOS.Bindings.dll -r...
  Process exited with code 1, command:
  /Applications/Xcode_9.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_9.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.0.sdk -Qunused-arguments -miphoneos-version-min=8.0 -arch arm64 -c -o /Users/ci/agent/vstsagent/_work/1/s/iOS/obj/iPhone/Release/mtouch-cache/arm64/registrar.o -x objective-c++ /Users/ci/agent/vstsagent/_work/1/s/iOS/obj/iPhone/Release/mtouch-cache/64/registrar.m
  In file included from /Users/ci/agent/vstsagent/_work/1/s/iOS/obj/iPhone/Release/mtouch-cache/64/registrar.m:2:
  /Users/ci/agent/vstsagent/_work/1/s/iOS/obj/iPhone/Release/mtouch-cache/64/registrar.h:11:9: fatal error: 'QuartzCore/CAEmitterBehavior.h' file not found
  #import <QuartzCore/CAEmitterBehavior.h>
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1 error generated.
  
  Process exited with code 1, command:
  /Applications/Xcode_9.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_9.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.0.sdk -Qunused-arguments -miphoneos-version-min=8.0 -arch armv7 -c -o /Users/ci/agent/vstsagent/_work/1/s/iOS/obj/iPhone/Release/mtouch-cache/armv7/registrar.o -x objective-c++ /Users/ci/agent/vstsagent/_work/1/s/iOS/obj/iPhone/Release/mtouch-cache/32/registrar.m
  In file included from /Users/ci/agent/vstsagent/_work/1/s/iOS/obj/iPhone/Release/mtouch-cache/32/registrar.m:2:
  /Users/ci/agent/vstsagent/_work/1/s/iOS/obj/iPhone/Release/mtouch-cache/32/registrar.h:12: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 [/Users/ci/agent/vstsagent/_work/1/s/iOS/BeatPain.iOS.csproj]
Done Building Project "/Users/ci/agent/vstsagent/_work/1/s/iOS/BeatPain.iOS.csproj" (Rebuild target(s)) -- FAILED.

Build FAILED.

"/Users/ci/agent/vstsagent/_work/1/s/iOS/BeatPain.iOS.csproj" (Rebuild target) (1) ->
(_CompileToNative target) -> 
  MTOUCH : error MT4109: Failed to compile the generated registrar code. Please file a bug report at http://bugzilla.xamarin.com [/Users/ci/agent/vstsagent/_work/1/s/iOS/BeatPain.iOS.csproj]

    0 Warning(s)
    1 Error(s)

Time Elapsed 00:02:37.64
##[error]Xamarin.iOS task failed with error Error: /Library/Frameworks/Mono.framework/Versions/5.2/bin/msbuild failed with return code: 1. For guidance on setting up the build definition, see https://go.microsoft.com/fwlink/?LinkId=760847.
[command]/usr/bin/security delete-keychain /Users/ci/agent/vstsagent/_work/1/s/_xamariniostasktmp.keychain

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

Version 7.3 Preview (7.3 build 692)
Installation UUID: 42eb9591-7b5f-42e2-9064-6f7782f288fe
Runtime:
	Mono 5.4.0.212 (2017-06/fbc487ff424) (64-bit)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 504000212

=== NuGet ===

Version: 4.3.1.4445

=== .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.4.0/lib/mono/msbuild/15.0/bin/Sdks

=== Xamarin.Profiler ===

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

=== Apple Developer Tools ===

Xcode 9.0 (13247)
Build 9A235

=== Xamarin.iOS ===

Version: 11.4.0.84 (Visual Studio Community)
Hash: 697f665b
Branch: d15-5
Build date: 2017-10-09 19:11:38-0400

=== Xamarin.Android ===

Version: 8.1.0.20 (Visual Studio Community)
Android SDK: /Users/juliemisson/Library/Android/sdk
	Supported Android versions:
		6.0 (API level 23)
		7.1 (API level 25)

SDK Tools Version: 25.2.5
SDK Platform Tools Version: 26.0.0
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.2
Hash: 461f09a
Branch: 1.3-release
Build date: Tue, 03 Oct 2017 18:26:57 GMT
Client compatibility: 1

=== Xamarin.Mac ===

Version: 4.0.0.84 (Visual Studio Community)

=== Build Information ===

Release ID: 703000692
Git revision: 95452ca0ca037e437019e8d298e684d0d67b993c
Build date: 2017-10-10 13:56:48-04
Xamarin addins: e2b376dbfb700a9627ae07ea84dcf80ad696d7f1
Build lane: monodevelop-lion-d15-5

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

Gorilla Player 1.1.0.4

Packages.config
<?xml version="1.0" encoding="utf-8"?>
<packages>
  <package id="ExifLib.PCL" version="1.0.2-pre01" targetFramework="portable45-net45+win8+wpa81" />
  <package id="jQuery" version="3.2.1" targetFramework="portable45-net45+win8+wpa81" />
  <package id="Microsoft.Azure.Mobile" version="0.15.0" targetFramework="portable45-net45+win8+wpa81" />
  <package id="Microsoft.Azure.Mobile.Analytics" version="0.15.0" targetFramework="portable45-net45+win8+wpa81" />
  <package id="Microsoft.Azure.Mobile.Crashes" version="0.15.0" targetFramework="portable45-net45+win8+wpa81" />
  <package id="Plugin.MediaManager" version="0.4.5" targetFramework="portable45-net45+win8+wpa81" />
  <package id="sqlite-net-pcl" version="1.4.118" targetFramework="portable45-net45+win8+wpa81" />
  <package id="SQLitePCLRaw.bundle_green" version="1.1.8" targetFramework="portable45-net45+win8+wpa81" />
  <package id="SQLitePCLRaw.core" version="1.1.8" targetFramework="portable45-net45+win8+wpa81" />
  <package id="Syncfusion.Xamarin.SfCarousel" version="15.3.0.33" targetFramework="portable45-net45+win8+wpa81" />
  <package id="Syncfusion.Xamarin.SfChart" version="15.3.0.33" targetFramework="portable45-net45+win8+wpa81" />
  <package id="Syncfusion.Xamarin.SfRangeSlider" version="15.3.0.33" targetFramework="portable45-net45+win8+wpa81" />
  <package id="Xam.Plugins.Messaging" version="4.0.0" targetFramework="portable45-net45+win8+wpa81" />
  <package id="Xam.Plugins.Settings" version="3.0.1" targetFramework="portable45-net45+win8+wpa81" />
  <package id="Xamarin.Forms" version="2.3.4.270" targetFramework="portable45-net45+win8+wpa81" />
  <package id="Xamarin.Forms.CarouselView" version="2.3.0-pre2" targetFramework="portable45-net45+win8+wpa81" />
</packages>

Packages.config iOS
<?xml version="1.0" encoding="utf-8"?>
<packages>
  <package id="ExifLib.PCL" version="1.0.2-pre01" targetFramework="xamarinios10" />
  <package id="Microsoft.Azure.Mobile" version="0.15.0" targetFramework="xamarinios10" />
  <package id="Microsoft.Azure.Mobile.Analytics" version="0.15.0" targetFramework="xamarinios10" />
  <package id="Microsoft.Azure.Mobile.Crashes" version="0.15.0" targetFramework="xamarinios10" />
  <package id="Microsoft.NETCore.Platforms" version="2.0.0" targetFramework="xamarinios10" />
  <package id="Microsoft.Win32.Primitives" version="4.3.0" targetFramework="xamarinios10" />
  <package id="NETStandard.Library" version="2.0.1" targetFramework="xamarinios10" />
  <package id="Plugin.MediaManager" version="0.4.5" targetFramework="xamarinios10" />
  <package id="sqlite-net-pcl" version="1.4.118" targetFramework="xamarinios10" />
  <package id="SQLitePCLRaw.bundle_green" version="1.1.8" targetFramework="xamarinios10" />
  <package id="SQLitePCLRaw.core" version="1.1.8" targetFramework="xamarinios10" />
  <package id="SQLitePCLRaw.provider.sqlite3.ios_unified" version="1.1.8" targetFramework="xamarinios10" />
  <package id="Syncfusion.Xamarin.SfCarousel" version="15.3.0.33" targetFramework="xamarinios10" />
  <package id="Syncfusion.Xamarin.SfChart" version="15.3.0.33" targetFramework="xamarinios10" />
  <package id="Syncfusion.Xamarin.SfRangeSlider" version="15.3.0.33" targetFramework="xamarinios10" />
  <package id="System.AppContext" version="4.3.0" targetFramework="xamarinios10" />
  <package id="System.Collections" version="4.3.0" targetFramework="xamarinios10" />
  <package id="System.Collections.Concurrent" version="4.3.0" targetFramework="xamarinios10" />
  <package id="System.Console" version="4.3.0" targetFramework="xamarinios10" />
  <package id="System.Diagnostics.Debug" version="4.3.0" targetFramework="xamarinios10" />
  <package id="System.Diagnostics.Tools" version="4.3.0" targetFramework="xamarinios10" />
  <package id="System.Diagnostics.Tracing" version="4.3.0" targetFramework="xamarinios10" />
  <package id="System.Globalization" version="4.3.0" targetFramework="xamarinios10" />
  <package id="System.Globalization.Calendars" version="4.3.0" targetFramework="xamarinios10" />
  <package id="System.IO" version="4.3.0" targetFramework="xamarinios10" />
  <package id="System.IO.Compression" version="4.3.0" targetFramework="xamarinios10" />
  <package id="System.IO.Compression.ZipFile" version="4.3.0" targetFramework="xamarinios10" />
  <package id="System.IO.FileSystem" version="4.3.0" targetFramework="xamarinios10" />
  <package id="System.IO.FileSystem.Primitives" version="4.3.0" targetFramework="xamarinios10" />
  <package id="System.Linq" version="4.3.0" targetFramework="xamarinios10" />
  <package id="System.Linq.Expressions" version="4.3.0" targetFramework="xamarinios10" />
  <package id="System.Net.Http" version="4.3.3" targetFramework="xamarinios10" />
  <package id="System.Net.Primitives" version="4.3.0" targetFramework="xamarinios10" />
  <package id="System.Net.Sockets" version="4.3.0" targetFramework="xamarinios10" />
  <package id="System.ObjectModel" version="4.3.0" targetFramework="xamarinios10" />
  <package id="System.Reflection" version="4.3.0" targetFramework="xamarinios10" />
  <package id="System.Reflection.Extensions" version="4.3.0" targetFramework="xamarinios10" />
  <package id="System.Reflection.Primitives" version="4.3.0" targetFramework="xamarinios10" />
  <package id="System.Resources.ResourceManager" version="4.3.0" targetFramework="xamarinios10" />
  <package id="System.Runtime" version="4.3.0" targetFramework="xamarinios10" />
  <package id="System.Runtime.Extensions" version="4.3.0" targetFramework="xamarinios10" />
  <package id="System.Runtime.Handles" version="4.3.0" targetFramework="xamarinios10" />
  <package id="System.Runtime.InteropServices" version="4.3.0" targetFramework="xamarinios10" />
  <package id="System.Runtime.InteropServices.RuntimeInformation" version="4.3.0" targetFramework="xamarinios10" />
  <package id="System.Runtime.Numerics" version="4.3.0" targetFramework="xamarinios10" />
  <package id="System.Security.Cryptography.Algorithms" version="4.3.0" targetFramework="xamarinios10" />
  <package id="System.Security.Cryptography.Encoding" version="4.3.0" targetFramework="xamarinios10" />
  <package id="System.Security.Cryptography.Primitives" version="4.3.0" targetFramework="xamarinios10" />
  <package id="System.Security.Cryptography.X509Certificates" version="4.3.1" targetFramework="xamarinios10" />
  <package id="System.Text.Encoding" version="4.3.0" targetFramework="xamarinios10" />
  <package id="System.Text.Encoding.Extensions" version="4.3.0" targetFramework="xamarinios10" />
  <package id="System.Text.RegularExpressions" version="4.3.0" targetFramework="xamarinios10" />
  <package id="System.Threading" version="4.3.0" targetFramework="xamarinios10" />
  <package id="System.Threading.Tasks" version="4.3.0" targetFramework="xamarinios10" />
  <package id="System.Threading.Timer" version="4.3.0" targetFramework="xamarinios10" />
  <package id="System.Xml.ReaderWriter" version="4.3.0" targetFramework="xamarinios10" />
  <package id="System.Xml.XDocument" version="4.3.0" targetFramework="xamarinios10" />
  <package id="Xam.Plugins.Messaging" version="4.0.0" targetFramework="xamarinios10" />
  <package id="Xam.Plugins.Settings" version="3.0.1" targetFramework="xamarinios10" />
  <package id="Xamarin.Forms" version="2.3.4.270" targetFramework="xamarinios10" />
  <package id="Xamarin.Forms.CarouselView" version="2.3.0-pre2" targetFramework="xamarinios10" />
</packages>
Comment 2 Rolf Bjarne Kvinge [MSFT] 2017-10-16 17:37:14 UTC
Hi Rachel,

Mobile Center issues can be reported via Intercom (click the blue circle chat button in the lower right of the screen). 

I checked with the team and this is a known issue that is being fixed and will be resolved soon. 

In the meantime, to workaround this you could add a pre-build script with the following:

#!/bin/bash
/Users/vsts/agent/2.123.0/scripts/select-xamarin-sdk.sh Stable

Guide on build scripts: https://docs.microsoft.com/en-us/mobile-center/build/custom/scripts/

Note* If you notice that this fails, check the build output and look for the correct path. "/Users/vsts/agent/2.123.0/scripts/" worked for my test on Mobile Center after I checked the build output for where the scripts were running from.
Comment 3 thiago gomes toledo 2017-11-18 20:45:41 UTC
Hi Rolf,

Actually this doesn't solve my problema, which by the way was very similar to Rachel.

What resolve for me was turn off the optimizing compile process made with LLVM and changing the Xcode version from 9.1 to 8.3.3.

But that's not something that I'm intend to keep to my app. Im just doing that to test my CI scripts.

Hope it helps, or at least give some clue about the real problem.