Xamarin-macios: MT3001: Could not AOT the assembly

Created on 1 May 2018  路  4Comments  路  Source: xamarin/xamarin-macios

Two cases in build(xamarin.ios):

1) When build option setting:

Linker behavior: Link All
In that case application crash with this error message
You MUST invoke LoadApplication () before calling base.FinishedLaunching ()

2) When build option setting:

Linker behavior: Link Framework SDKs Only
I'm getting the error:

MT3001: Could not AOT the assembly.

/Users/macmini01/Desktop/Per/RunningCode_Both/XXX_Mobile Sourcecode_2Apr2018/XXX/XXX.iOS/MTOUCH: Error MT3001: Could not AOT the assembly '/Users/macmini01/Desktop/Per/RunningCode_Both/XXX_Mobile Sourcecode_2Apr2018/XXX/XXX.iOS/obj/iPhone/Debug/mtouch-cache/64/Build/OsmSharp.UI.dll' (MT3001) (XXX.iOS)

bug iOS need-info

All 4 comments

Please include your full build logs, crash reports (if any), test case (to reproduce) and all your version information.

To get full build logs just set the log verbosity to diagnostic at the following locations:

  • On Visual Studio for Mac: Preferences > Projects > Build
  • On Visual Studio for Windows: Tools > Options > Projects and Solutions > Build and Run

On Visual Studio Windows you also want to add -v -v -v -v to the mtouch additional arguments by right-clicking the project in the solution explorer and selecting Properties.
Note: this is done automatically on Visual Studio for Mac when the log verbosity is set to diagnostic.

The easiest way to get exact version information:

  • On Visual Studio for Mac: "Visual Studio" menu, "About Visual Studio" item, "Show Details" button.
  • On Visual Studio for Windows: "Help menu", "About Microsoft Visual Studio" item.
    Then copy/paste the version information (you can use the "Copy Information" button).

When build option setting
Linker behavior: Link Framework SDKs Only

Build_Log.txt
Xamarin_IDE_Log.txt

When build option setting
Linker behavior: Link All

Carsh Log .txt

Xamarin_IDE_Log.txt

Oh just realized this issue is a perfect duplicate of https://github.com/xamarin/xamarin-macios/issues/4012. Please let's keep everything in one issue (:

I am getting this issue with Visual Studio Community 2019 (Version 16.1.5) and MacOS Catalina (Version 10.15 Beta (19A501i)

Any workaround for this?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

orryverducci picture orryverducci  路  4Comments

wcoder picture wcoder  路  3Comments

mandel-macaque picture mandel-macaque  路  3Comments

nickplee picture nickplee  路  3Comments

chamons picture chamons  路  4Comments