iOS Could not AOT the assembly 'System.ComponentModel.DataAnnotations.dll'

Recently I added some attributes to several classes in my Xamarin Forms solution (NETStandard.Library - 2.0.3) that required 'System.ComponentModel.DataAnnotations.dll'. Since then I am now unable to build the solution for iOS (I am able to build on Android however the app crashes on startup).

/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/bin/mtouch @/x/y/z/AppName.iOS/obj/iPhone/Debug/response-file.rsp
MTOUCH : error MT3001: Could not AOT the assembly '/x/y/z/AppName.iOS/obj/iPhone/Debug/mtouch-cache/3-Build/System.ComponentModel.DataAnnotations.dll'

Visual Studio Professional 2017 for Mac
Version 7.6.1 (build 9)
Installation UUID: 034ea3f9-f985-4e7e-89e7-b970f1896033
Runtime:
Mono 5.12.0.301 (2018-02/4fe3280bba1) (64-bit)
GTK+ 2.24.23 (Raleigh theme)
Xamarin.Mac 4.4.1.178 (master / eeaeb7e6)

Package version: 512000301

NuGet
Version: 4.3.1.4445

.NET Core
Runtime: /usr/local/share/dotnet/dotnet
Runtime Versions:
2.1.2
2.1.1
2.1.0
2.0.5
2.0.0
1.1.1
1.0.4
SDK: /usr/local/share/dotnet/sdk/2.1.302/Sdks
SDK Versions:
2.1.302
2.1.301
2.1.300
2.1.4
2.0.0
1.0.3
MSBuild SDKs: /Library/Frameworks/Mono.framework/Versions/5.12.0/lib/mono/msbuild/15.0/bin/Sdks

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

Xamarin.Android
Version: 9.0.0.19 (Visual Studio Professional)
Android SDK: /Users/kenwenyon/Library/Developer/Xamarin/android-sdk-macosx
Supported Android versions:
4.0.3 (API level 15)
4.1 (API level 16)
5.0 (API level 21)
5.1 (API level 22)
6.0 (API level 23)
7.0 (API level 24)
7.1 (API level 25)
8.0 (API level 26)
8.1 (API level 27)

SDK Tools Version: 26.1.1
SDK Platform Tools Version: 28.0.0
SDK Build Tools Version: 27.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

Apple Developer Tools
Xcode 9.4.1 (14161)
Build 9F2000

Xamarin.Mac
Version: 4.6.0.13 (Visual Studio Professional)
Hash: 373c313a
Branch:
Build date: 2018-07-24 23:47:12-0400

Xamarin.iOS
Version: 11.14.0.13 (Visual Studio Professional)
Hash: 373c313a
Branch: HEAD
Build date: 2018-07-24 23:47:12-0400

Xamarin Inspector
Version: 1.4.3
Hash: db27525
Branch: 1.4-release
Build date: Mon, 09 Jul 2018 21:20:18 GMT
Client compatibility: 1

Build Information
Release ID: 706010009
Git revision: 1916291c332d942d45f3d8a952cc315f7864abef
Build date: 2018-08-22 19:19:11+00
Build branch: release-7.6
Xamarin extensions: 53cd52a227bb91315389d4860f821fa4c3b396b3

Operating System
Mac OS X 10.13.6
Darwin 17.7.0 Darwin Kernel Version 17.7.0
Thu Jun 21 22:53:14 PDT 2018
root:xnu-4570.71.2~1/RELEASE_X86_64 x86_64

Enabled user installed extensions
EMDK for Xamarin 2.7.0.98
MFractor 3.05.18
MvvmCross Template pack 2.0.1
NuGet Package Explorer 0.2
NuGet Package Management Extensions 0.13
PowerShell 0.3
Team Foundation Version Control for TFS and VSTS 0.3.2
Mutatio 1.0.2
Prism Template Studio and Developer Toolkit 2.2.0.203
Redth's Addins 1.0.9
Internet of Things (IoT) development (Preview) 7.5

Answers

Sign In or Register to comment.