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)
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 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:
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
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?