Bug 42524 - error MT5103 and MT4109
Summary: error MT5103 and MT4109
Status: RESOLVED ANSWERED
Alias: None
Product: iOS
Classification: Xamarin
Component: Xamarin.iOS.dll ()
Version: XI 9.8 (tvOS / C7)
Hardware: PC Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-07-13 15:31 UTC by Nikita Milyukov
Modified: 2016-07-13 20:39 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
output (80.96 KB, text/rtf)
2016-07-13 15:31 UTC, Nikita Milyukov
Details


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 Nikita Milyukov 2016-07-13 15:31:46 UTC
Created attachment 16648 [details]
output

Building for publishing (or just building for device) fails with these errors:
MTOUCH: error MT5103: Failed to compile the file '/Users/nikita/Documents/Xamarin/Rules40k.ios/Rules40k/obj/iPhone/Release/mtouch-cache/main.armv7.m'. Please file a bug report at http://bugzilla.xamarin.com
	MTOUCH: error MT4109: Failed to compile the generated registrar code. Please file a bug report at http://bugzilla.xamarin.com

Output is attached as txt file.

Here is a part of output that looks really strange:
Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUnit.h:133:12: error: unknown property attribute 'class'
		@property (class, readonly, copy) NSUnitAcceleration *metersPerSecondSquared;
		           ^ 
		/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUnit.h:134:12: error: unknown property attribute 'class'
		@property (class, readonly, copy) NSUnitAcceleration *gravity;
		           ^ 
		/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUnit.h:144:12: error: unknown property attribute 'class'
		@property (class, readonly, copy) NSUnitAngle *degrees;
		           ^ 
		/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUnit.h:145:12: error: unknown property attribute 'class'
		@property (class, readonly, copy) NSUnitAngle *arcMinutes;
		           ^ 
		/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUnit.h:146:12: error: unknown property attribute 'class'
		@property (class, readonly, copy) NSUnitAngle *arcSeconds;
		           ^ 
		/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUnit.h:147:12: error: unknown property attribute 'class'
		@property (class, readonly, copy) NSUnitAngle *radians;
		           ^ 
		/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUnit.h:148:12: error: unknown property attribute 'class'
		@property (class, readonly, copy) NSUnitAngle *gradians;
		           ^ 
		/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUnit.h:149:12: error: unknown property attribute 'class'
		@property (class, readonly, copy) NSUnitAngle *revolutions;
		           ^ 
		/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUnit.h:151:12: error: unknown property attribute 'class'
		@property (class, readonly, copy) NSUnitAngle *degree API_DEPRECATED("No longer supported - use degrees instead", macosx(10.12, 10.12), ios(10.0, 10.0), watchos(3.0, 3.0), tvos(10.0, 10.0));
		           ^ 
		/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUnit.h:161:12: error: unknown property attribute 'class'
		@property (class, readonly, copy) NSUnitArea *squareMegameters;
		           ^ 
		/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUnit.h:162:12: error: unknown property attribute 'class'
		@property (class, readonly, copy) NSUnitArea *squareKilometers;
		           ^ 
		/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUnit.h:163:12: error: unknown property attribute 'class'
		@property (class, readonly, copy) NSUnitArea *squareMeters;
		           ^ 
		/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUnit.h:164:12: error: unknown property attribute 'class'
		@property (class, readonly, copy) NSUnitArea *squareCentimeters;
		           ^ 
		/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUnit.h:165:12: error: unknown property attribute 'class'
		@property (class, readonly, copy) NSUnitArea *squareMillimeters;
		           ^ 
		/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUnit.h:166:12: error: unknown property attribute 'class'
		@property (class, readonly, copy) NSUnitArea *squareMicrometers;
		           ^ 
		/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUnit.h:167:12: error: unknown property attribute 'class'
		@property (class, readonly, copy) NSUnitArea *squareNanometers;
		           ^ 
		/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUnit.h:168:12: error: unknown property attribute 'class'
		@property (class, readonly, copy) NSUnitArea *squareInches;
		           ^ 
		/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUnit.h:169:12: error: unknown property attribute 'class'
		@property (class, readonly, copy) NSUnitArea *squareFeet;
		           ^ 
		/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUnit.h:170:12: error: unknown property attribute 'class'
		@property (class, readonly, copy) NSUnitArea *squareYards;
		           ^ 
		fatal error: too many errors emitted, stopping now [-ferror-limit=]
		20 errors generated.
Comment 1 Sebastien Pouliot 2016-07-13 18:36:49 UTC
It looks like you're using the new beta SDK, /iPhoneOS10.0.sdk/ in your path, with an older version of `clang`.

You get the errors because the `class` keyword, causing the error, is new in Xcode8 toolchain (so older `clang` can't process the new headers).

I'm not sure how you got into this mixed situation (clang vs headers). However you should not be using XI 9.8 with Xcode 8 beta*. Even less if you want to publish the app (if Apple detects a beta SDK was used then it will reject the app).

* We'll soon have a public preview for Xcode 8 (and iOS 10), until then it's only possible if you build the SDK from the open source git repo.
Comment 2 Nikita Milyukov 2016-07-13 19:28:49 UTC
Hi again
My xamarin version is 6.0 and ios sdk is 9.6.2.4. Which versions should I download instead of them?
Comment 3 Nikita Milyukov 2016-07-13 19:39:53 UTC
It feels like I made some manipulations with XCode and a little.. updated ios sdk without updating xcode (i can only use os x 10.10.5 and an older xcode). Now I'm installing previous version of xcode, hope it would help. I'll write here later
Comment 4 Nikita Milyukov 2016-07-13 20:39:23 UTC
Now everything is OK, thank you for helping