Bug 26220 - Can't build iOS app - error MT5103: Failed to compile the file
Summary: Can't build iOS app - error MT5103: Failed to compile the file
Status: RESOLVED DUPLICATE of bug 26150
Alias: None
Product: iOS
Classification: Xamarin
Component: Tools ()
Version: XI 8.6.0
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-01-20 21:51 UTC by Neal
Modified: 2015-01-21 11: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 DUPLICATE of bug 26150

Description Neal 2015-01-20 21:51:15 UTC
Hello,

Trying to build my app that built fine in the prior stable of Xam Studio.  I'm using 5.7 now and getting the error below:

error MT5103: Failed to compile the file '/Users/Neal/Dev/ncsoftware/apdlCustomContainerModel/apdl/obj/iPhone/Release/mtouch-cache/main.armv7.m'. Please file a bug report at http://bugzilla.xamarin.com
error MT5103: Failed to compile the file '/Users/Neal/Dev/ncsoftware/apdlCustomContainerModel/apdl/obj/iPhone/Release/mtouch-cache/main.armv7s.m'. Please file a bug report at http://bugzilla.xamarin.com


=== Xamarin Studio ===

Version 5.7 (build 661)
Installation UUID: 04f662da-dc55-419b-a51c-58d6db062584
Runtime:
	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.iOS ===

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

=== Xamarin.Mac ===

Version: 1.10.0.18 (Business Edition)

=== Xamarin.Android ===

Version: 4.20.0.28 (Business Edition)
Android SDK: /Users/Neal/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)
		4.4    (API level 19)
		4.4.87 (API level 20)
		5.0    (API level 21)
Java SDK: /usr
java version "1.8.0_25"
Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)

=== 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.10.1
Darwin Neals-iMac.local 14.0.0 Darwin Kernel Version 14.0.0
    Fri Sep 19 00:26:44 PDT 2014
    root:xnu-2782.1.97~2/RELEASE_X86_64 x86_64
Comment 1 Rolf Bjarne Kvinge [MSFT] 2015-01-21 09:49:59 UTC
Please attach the full build output and the file it can't compile (/Users/Neal/Dev/ncsoftware/apdlCustomContainerModel/apdl/obj/iPhone/Release/mtouch-cache/main.armv7.m)
Comment 4 Neal 2015-01-21 10:42:53 UTC
Is this caused by our existing crashlytics integration?  And if so, how do we use crashlytics now?  I see it shows deprecated...

Compiling to native code
/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/bin/mtouch -sdkroot "/Applications/Xcode.app/Contents/Developer" --cache "/Users/Neal/Dev/ncsoftware/apdlCustomContainerModel/apdl/obj/iPhone/AdHoc/mtouch-cache" --executable "apdl" --nomanifest --nosign -dev "/Users/Neal/Dev/ncsoftware/apdlCustomContainerModel/apdl/bin/iPhone/AdHoc/apdl.app" -r "/Users/Neal/Dev/ncsoftware/NCSoftware.Common/bin/Release/NCSoftware.Common.dll" -r "/Users/Neal/Dev/ncsoftware/NCSoftware.Extensions/NCSoftware.Extensions/bin/Release/NCSoftware.Extensions.dll" -r "/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/2.1/System.dll" -r "/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/2.1/System.Xml.dll" -r "/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/2.1/System.Core.dll" -r "/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/2.1/monotouch.dll" -r "/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/2.1/System.Data.dll" -r "/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/2.1/System.Data.Services.Client.dll" -r "/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/2.1/System.Runtime.Serialization.dll" -r "/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/2.1/System.Json.dll" -r "/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/2.1/System.Web.Services.dll" -r "/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/2.1/System.ServiceModel.Web.dll" -r "/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/2.1/System.ServiceModel.dll" -r "/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/2.1/System.Xml.Linq.dll" -r "/Users/Neal/Dev/ncsoftware/apdlCustomContainerModel/Components/Crashlytics.dll" -r "/Users/Neal/Dev/ncsoftware/apdlCustomContainerModel/Components/coreplot-1.5.1.1/lib/ios/CorePlotiOS.dll" -r "/Users/Neal/Dev/ncsoftware/apdlCustomContainerModel/Components/zxing.net.mobile-1.4.7/lib/ios/ZXing.Net.Mobile.dll" -r "/Users/Neal/Dev/ncsoftware/apdlCustomContainerModel/Components/zxing.net.mobile-1.4.7/lib/ios/zxing.monotouch.dll" --crashreporting-api-key:98743d3b55124006cf62f0594564dcdb3fefa4eb --crashreporting-delay:1 -linksdkonly -sdk "8.1" -targetver "7.1" --sgen --abi=armv7+llvm,armv7s+llvm "/Users/Neal/Dev/ncsoftware/apdlCustomContainerModel/apdl/bin/iPhone/AdHoc/apdl.exe"
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.
warning MT0016: The option '--crashreporting-delay' 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/8.6.0.51/SDKs/MonoTouch.iphoneos.sdk/usr/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk -Qunused-arguments -miphoneos-version-min=7.1 -arch armv7s -c -o /Users/Neal/Dev/ncsoftware/apdlCustomContainerModel/apdl/obj/iPhone/AdHoc/mtouch-cache/main.armv7s.o -x objective-c /Users/Neal/Dev/ncsoftware/apdlCustomContainerModel/apdl/obj/iPhone/AdHoc/mtouch-cache/main.armv7s.m
/Users/Neal/Dev/ncsoftware/apdlCustomContainerModel/apdl/obj/iPhone/AdHoc/mtouch-cache/main.armv7s.m:58:2: error: use of undeclared identifier 'xamarin_crashlytics_api_key'
        xamarin_crashlytics_api_key      = @"98743d3b55124006cf62f0594564dcdb3fefa4eb";
        ^
/Users/Neal/Dev/ncsoftware/apdlCustomContainerModel/apdl/obj/iPhone/AdHoc/mtouch-cache/main.armv7s.m:59:2: error: use of undeclared identifier 'xamarin_crashlytics_delay'
        xamarin_crashlytics_delay = 1;
        ^
/Users/Neal/Dev/ncsoftware/apdlCustomContainerModel/apdl/obj/iPhone/AdHoc/mtouch-cache/main.armv7s.m:60:2: error: use of undeclared identifier 'xamarin_console_poll_interval'
        xamarin_console_poll_interval = 0;
        ^
/Users/Neal/Dev/ncsoftware/apdlCustomContainerModel/apdl/obj/iPhone/AdHoc/mtouch-cache/main.armv7s.m:61: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.

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/8.6.0.51/SDKs/MonoTouch.iphoneos.sdk/usr/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk -Qunused-arguments -miphoneos-version-min=7.1 -arch armv7 -c -o /Users/Neal/Dev/ncsoftware/apdlCustomContainerModel/apdl/obj/iPhone/AdHoc/mtouch-cache/main.armv7.o -x objective-c /Users/Neal/Dev/ncsoftware/apdlCustomContainerModel/apdl/obj/iPhone/AdHoc/mtouch-cache/main.armv7.m
/Users/Neal/Dev/ncsoftware/apdlCustomContainerModel/apdl/obj/iPhone/AdHoc/mtouch-cache/main.armv7.m:58:2: error: use of undeclared identifier 'xamarin_crashlytics_api_key'
        xamarin_crashlytics_api_key      = @"98743d3b55124006cf62f0594564dcdb3fefa4eb";
        ^
/Users/Neal/Dev/ncsoftware/apdlCustomContainerModel/apdl/obj/iPhone/AdHoc/mtouch-cache/main.armv7.m:59:2: error: use of undeclared identifier 'xamarin_crashlytics_delay'
        xamarin_crashlytics_delay = 1;
        ^
/Users/Neal/Dev/ncsoftware/apdlCustomContainerModel/apdl/obj/iPhone/AdHoc/mtouch-cache/main.armv7.m:60:2: error: use of undeclared identifier 'xamarin_console_poll_interval'
        xamarin_console_poll_interval = 0;
        ^
/Users/Neal/Dev/ncsoftware/apdlCustomContainerModel/apdl/obj/iPhone/AdHoc/mtouch-cache/main.armv7.m:61: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 '/Users/Neal/Dev/ncsoftware/apdlCustomContainerModel/apdl/obj/iPhone/AdHoc/mtouch-cache/main.armv7.m'. Please file a bug report at http://bugzilla.xamarin.com
error MT5103: Failed to compile the file '/Users/Neal/Dev/ncsoftware/apdlCustomContainerModel/apdl/obj/iPhone/AdHoc/mtouch-cache/main.armv7s.m'. Please file a bug report at http://bugzilla.xamarin.com
Comment 5 Neal 2015-01-21 10:47:41 UTC
I removed crashlytics from the .csproj file and now it does compile.

So where does this leave us for our crashlytics integration that we rely on?

Thanks
Comment 6 Rolf Bjarne Kvinge [MSFT] 2015-01-21 10:56:33 UTC
Crashlytics integration is deprecated and will be removed in a future version. It's also not supported in the Unified API.

Note that Crashlytics integration has never been a supported feature.

The duplicated bug report (#26150) includes a workaround you can implement locally to fix your build for now.

*** This bug has been marked as a duplicate of bug 26150 ***
Comment 7 Neal 2015-01-21 11:01:32 UTC
Okay - thanks - is Insights stable/production ready?