Bug 26150 - Enabling crashlytics causes build to fail.
Summary: Enabling crashlytics causes build to fail.
Alias: None
Product: iOS
Classification: Xamarin
Component: General ()
Version: XI 8.6.0
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
: 26220 26399 ()
Depends on:
Reported: 2015-01-19 04:59 UTC by Nicolas VERINAUD
Modified: 2015-03-09 07:56 UTC (History)
4 users (show)

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:

Description Nicolas VERINAUD 2015-01-19 04:59:56 UTC
I know it's an "unofficial" way of enabling crash reporting, I'm looking into integrating Insights when I have time. 

For now enabling crash reporting causes the build to fail with the following error :

Compiling to native code
/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/bin/mtouch -sdkroot "/Applications/Xcode.app/Contents/Developer" /* blabla */
Xamarin.iOS 8.6.0 Business Edition using framework: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk
warning MT0016: The option '--crashreporting-api-key' has been deprecated.
Process exited with code 1, command:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang  -gdwarf-2 -std=c99 -I/Library/Frameworks/Xamarin.iOS.framework/Versions/ -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk -Qunused-arguments -miphoneos-version-min=7.0 -arch armv7 -c -o obj/iPhone/Ad-Hoc/mtouch-cache/main.armv7.o -x objective-c obj/iPhone/Ad-Hoc/mtouch-cache/main.armv7.m
obj/iPhone/Ad-Hoc/mtouch-cache/main.armv7.m:108:2: error: use of undeclared identifier 'xamarin_crashlytics_api_key'
        xamarin_crashlytics_api_key      = @"6fb21e2f27a6c21712ff9c8a0b4c75afce93fdeb";
obj/iPhone/Ad-Hoc/mtouch-cache/main.armv7.m:109:2: error: use of undeclared identifier 'xamarin_crashlytics_delay'
        xamarin_crashlytics_delay = -1;
obj/iPhone/Ad-Hoc/mtouch-cache/main.armv7.m:110:2: error: use of undeclared identifier 'xamarin_console_poll_interval'
        xamarin_console_poll_interval = 0;
obj/iPhone/Ad-Hoc/mtouch-cache/main.armv7.m:111:2: warning: implicit declaration of function 'xamarin_initialize_crash_reporting' is invalid in C99 [-Wimplicit-function-declaration]
        xamarin_initialize_crash_reporting ();
1 warning and 3 errors generated.

error MT5103: Failed to compile the file 'obj/iPhone/Ad-Hoc/mtouch-cache/main.armv7.m'. Please file a bug report at http://bugzilla.xamarin.com


Environment info :

=== Xamarin Studio ===

Version 5.7 (build 661)
Installation UUID: ecbe2753-d3d6-467e-b753-3a5d76ad9f32
	Mono 3.12.0 ((detached/a813491)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 312000068

=== Apple Developer Tools ===

Xcode 6.1.1 (6611)
Build 6A2008a

=== Xamarin.Android ===

Version: (Business Edition)
Android SDK: /Users/nicolas/Library/Developer/Xamarin/android-sdk-mac_x86
	Supported Android versions:
		2.1    (API level 7)
		2.2    (API level 8)
		2.3    (API level 10)
		3.1    (API level 12)
		4.0    (API level 14)
		4.0.3  (API level 15)
		4.2    (API level 17)
		4.3    (API level 18)
		4.4    (API level 19)
		4.4.87 (API level 20)
		5.0    (API level 21)
Java SDK: /usr
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)

=== Xamarin.iOS ===

Version: (Business Edition)
Hash: dfb682f
Build date: 2015-01-08 13:39:32-0500

=== Xamarin.Mac ===

Not Installed

=== Build Information ===

Release ID: 507000661
Git revision: b70bab61da996da29045ea8ee8aed1a6faedbe78
Build date: 2015-01-05 16:31:31-05
Xamarin addins: 82f6c71490562d6cd125a09287f441902fdac3d7

=== Operating System ===

Mac OS X 10.9.5
Darwin Jobs.local 13.4.0 Darwin Kernel Version 13.4.0
    Sun Aug 17 19:50:11 PDT 2014
    root:xnu-2422.115.4~1/RELEASE_X86_64 x86_64
Comment 1 Rolf Bjarne Kvinge [MSFT] 2015-01-19 05:45:03 UTC
Are you using the Unified API?
Comment 2 Nicolas VERINAUD 2015-01-19 07:05:39 UTC
Comment 3 Rolf Bjarne Kvinge [MSFT] 2015-01-19 10:30:03 UTC

monotouch/master: 5889d9eeb1ca651c1b05d175ed919be992069826

You can work around it locally by editing the following file:


and comment out the #ifdef MONOTOUCH and #endif lines (do not comment out what's inside the #ifdef).
Comment 4 Rolf Bjarne Kvinge [MSFT] 2015-01-21 10:56:33 UTC
*** Bug 26220 has been marked as a duplicate of this bug. ***
Comment 5 Rolf Bjarne Kvinge [MSFT] 2015-03-09 07:56:46 UTC
*** Bug 26399 has been marked as a duplicate of this bug. ***