Thanks to visit codestin.com
Credit goes to github.com

Skip to content

iOS AOT Exception: VAR 0 (T1) cannot be expanded with type 0x11Β #18676

@chamons

Description

@chamons

From @balbarak on Wed, 22 Jan 2020 00:22:27 GMT

Steps to Reproduce

Direct Steps:

  1. Unzip
    3-Build.zip

  2. 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:

  1. Enable the Mono interpreter from iOS Build options
  2. Add Microsoft.Extensions.DependencyInjection package in Xamarin.Forms library project
  3. Build the porject

Expected Behavior

it should build successfully

Actual Behavior

Project is not built

Environment

Visual Studio for mac v8.4.2 (build 59)

Build Logs

MTOUCH: Error MT3001: Could not AOT the assembly '/**/**/Microsoft.Extensions.DependencyModel.dll' (MT3001)

Example Project (If Possible)

Copied from original issue dotnet/macios#7734

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions