Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AOT issue with mvvmcross

I'm unable to build Xamarin projects that reference MvvmCross as I receive the error:

Error MT3001: Could not AOT the assembly '/Users/chriskoiak/Documents/Initial/Mobile Clients/xxxx/obj/iPhone/Debug/mtouch-cache/Build/Cirrious.CrossCore.dll' (MT3001) Error MT3001: Could not AOT the assembly '/Users/chriskoiak/Documents/Initial/Mobile Clients/xxxx/obj/iPhone/Debug/mtouch-cache/Build/Cirrious.MvvmCross.dll' (MT3001)

This error occurred after I upgraded to xcode5, mvvmcross 3.0.12 Xamarin.iOS 7.0.0.11

Has anyone else experienced this problem or can suggest a fix?

Thanks

like image 430
Chris Koiak Avatar asked Sep 19 '13 15:09

Chris Koiak


1 Answers

This is a little bug that has appeared in the initial Xamarin.iOS 7 release, caused by the transition to "real" PCL reference assemblies on OS X. The developers are working to get this fixed right away, but in the meantime there is a work-around. Specifically, you can add -linkskip=System.Net -linkskip=System.Windows to the "Additional mtouch arguments" under Project Options -> Build -> iOS Build. This will tell the linker not to try to link System.Net or System.Windows.

Update: A corrected version of Xamarin.iOS (7.0.1) has now been released to the alpha channel. When using this latest version, the linksip work-around should no longer be needed.

like image 63
Brendan Zagaeski Avatar answered Oct 31 '22 14:10

Brendan Zagaeski