Direct Steps:
Unzip
3-Build.zip
Run make
MONO_PATH=. /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/bin/arm64-darwin-mono-sgen --debug -O=gsharedvt -O=-float32 --aot=mtriple=arm64-ios,data-outfile=Microsoft.Extensions.DependencyModel.aotdata.arm64,static,asmonly,direct-icalls,interp,full,soft-debug,dwarfdebug,no-direct-calls,outfile=Microsoft.Extensions.DependencyModel.dll.s Microsoft.Extensions.DependencyModel.dll
Mono Ahead of Time compiler - compiling assembly /Users/donblas/Desktop/3-Build/Microsoft.Extensions.DependencyModel.dll
AOTID 9521AEA2-F876-F399-7F1B-4E2607B30474
* Assertion at /Users/builder/jenkins/workspace/archive-mono/2019-08/ios/release/mono/mini/mini-generic-sharing.c:1228, condition `is_ok (error)' not met, function:get_wrapper_shared_vtype, VAR 0 (T1) cannot be expanded with type 0x11
Original Steps:
Enable the Mono interpreter from iOS Build optionsMicrosoft.Extensions.DependencyInjection package in Xamarin.Forms library projectit should build successfully
Project is not built
Visual Studio for mac v8.4.2 (build 59)
MTOUCH: Error MT3001: Could not AOT the assembly '/**/**/Microsoft.Extensions.DependencyModel.dll' (MT3001)
Thank you for your feedback!
For us to investigate this further, could you please provide 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 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:
Then copy/paste the version information (you can use the "Copy Information" button).
We look forward to hearing from you!
I have also been having this issue for a couple of months.
Here is the build log and version info.
version-info.txt
Output-Build.txt
As for a repro, for me this only occurs with the mono interpreter enabled on iPhone and not the simulator. I attempted a repro but I got a "codesign exited with code 1" error I believe due to lack of certificates for the new project.
Personally my project also uses EFCore if it's any help.
Same issue here with VS 2019
I'm having trouble reproducing this on latest stable.
Can you please attach a test project that reproduces it?
I'm having trouble to reproduce on a separate project too!
I'm comparing the new projects side by side...
Same references, same configuration, even deleted the cache at the Mac!
I'll let you know if I manage to reproduce it! I might move the whole project to a fresh project
I managed to reproduce the issue!
The problem seems to be caused by Microsoft.EntityFrameworkCore.Sqlite 3.1.1
When I switched to version 2.2.6 I don't get this error.
You can identify the issue in the project attached.
I experience the same issue.
This issue was moved to mono/mono#18676
Thanks for the sample, it was very helpful and I've been able to isolate it to a one line command that reproduces and send it to the runtime team.
Thanks for your help and support
experiencing the same while compiling iOS in appcenter, will downgrade EntityFrameworkCore, thanks!
Having this issue with EF Core 3.1.3, I have not figured out a workout. Do we have to wait for updates with Xamarin?
We are waiting on https://github.com/mono/mono/issues/18676 being fixed.
Is there any fix for this issue ? I am facing the same with EntityFrameworkCore 3.1.3!
Most helpful comment
Is there any fix for this issue ? I am facing the same with EntityFrameworkCore 3.1.3!