xamarin / xamarin-macios

.NET for iOS, Mac Catalyst, macOS, and tvOS provide open-source bindings of the Apple SDKs for use with .NET managed languages such as C#
Other
2.44k stars 507 forks source link

Could not AOT the assembly Microsoft.EntityFrameworkCore.dll #4188

Closed ysmoradi closed 6 years ago

ysmoradi commented 6 years ago

Steps to Reproduce

I wasn't able to reproduce this in a new project. I'm gonna provide data as mush as I can in upcoming steps of issue.

Expected Behavior

Project get's built.

Actual Behavior

In Debug mode of emulator, everything works fine. But I can't make project built for device in both debug/release configurations.

Environment

Microsoft Visual Studio Enterprise 2017 
Version 15.7.2
VisualStudio.15.Release/15.7.2+27703.2018
Microsoft .NET Framework
Version 4.7.03062

Installed Version: Enterprise

C# Tools   2.8.2-beta6-62916-08. Commit Hash: 2ad4aabc7a9dada097e54e544ebba48ab1c05074
C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Merq   1.1.19-rc (a4ffc1b)
Command Bus, Event Stream and Async Manager for Visual Studio extensions.

Mono Debugging for Visual Studio   4.10.5-pre (ab58725)
Support for debugging Mono processes with Visual Studio.

Visual Studio Code Debug Adapter Host Package   1.0
Interop layer for hosting Visual Studio Code debug adapters in Visual Studio

VisualStudio.Mac   1.0
Mac Extension for Visual Studio

Xamarin   4.10.0.448 (4373404db)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin Designer   4.12.270 (82d750d12)
Visual Studio extension to enable Xamarin Designer tools in Visual Studio.

Xamarin.Android SDK   8.3.0.19 (HEAD/342b2ce96)
Xamarin.Android Reference Assemblies and MSBuild support.

Xamarin.iOS and Xamarin.Mac SDK   11.10.1.178 (408d357)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.
=== Visual Studio Community 2017 for Mac ===

Version 7.5.2 (build 40)
Installation UUID: d1359e59-15d2-4f4b-8b85-f2f70545f5a3
Runtime:
    Mono 5.10.1.57 (2017-12/ea8a24b1bbf) (64-bit)
    GTK+ 2.24.23 (Raleigh theme)
    Xamarin.Mac 4.4.1.178 (master / eeaeb7e6)

    Package version: 510010057

=== .NET Core ===

Runtime: /usr/local/share/dotnet/dotnet
Runtime Versions:
    2.1.0
    2.0.5
SDK: /usr/local/share/dotnet/sdk/2.1.300/Sdks
SDK Versions:
    2.1.300
    2.1.4

MSBuild SDKs: /Library/Frameworks/Mono.framework/Versions/5.10.1/lib/mono/msbuild/15.0/bin/Sdks

=== Apple Developer Tools ===

Xcode 9.4 (14160)
Build 9F1027a

=== Xamarin.Mac ===

Xamarin.Mac not installed. Can't find /Library/Frameworks/Xamarin.Mac.framework/Versions/Current/Version.

=== Xamarin.iOS ===

Version: 11.12.0.4 (Visual Studio Community)
Hash: 64fece5f
Branch: d15-7
Build date: 2018-05-29 20:00:44-0400

=== Build Information ===

Release ID: 705020040
Git revision: cfe2fc0566bc4db990242959de40505a13f58352
Build date: 2018-05-30 11:24:18-04
Xamarin addins: 3ac7413ef51a88e06367313c27aec8f7292752a6
Build lane: monodevelop-lion-d15-7

=== Operating System ===

Mac OS X 10.13.4
Darwin 17.5.0 Darwin Kernel Version 17.5.0
    Mon Mar  5 22:24:32 PST 2018
    root:xnu-4570.51.1~1/RELEASE_X86_64 x86_64

Build Logs

1>------ Build started: Project: ImaanPlus.JsonData, Configuration: Release Any CPU ------
1>ImaanPlus.JsonData -> D:\bit-foundation\_ImaanPlus\src\Shared\ImaanPlus.JsonData\bin\Release\netstandard2.0\ImaanPlus.JsonData.dll
2>------ Build started: Project: ImaanPlus.App.Data, Configuration: Release Any CPU ------
2>D:\bit-foundation\_ImaanPlus\src\Client\ImaanPlus.App.Data\ImaanPlus.App.Data.csproj : warning NU1701: Package 'PCLCrypto 2.0.147' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETCoreApp,Version=v2.0'. This package may not be fully compatible with your project.
2>D:\bit-foundation\_ImaanPlus\src\Client\ImaanPlus.App.Data\ImaanPlus.App.Data.csproj : warning NU1701: Package 'PInvoke.NCrypt 0.3.2' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETCoreApp,Version=v2.0'. This package may not be fully compatible with your project.
2>D:\bit-foundation\_ImaanPlus\src\Client\ImaanPlus.App.Data\ImaanPlus.App.Data.csproj : warning NU1701: Package 'Validation 2.2.8' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETCoreApp,Version=v2.0'. This package may not be fully compatible with your project.
2>D:\bit-foundation\_ImaanPlus\src\Client\ImaanPlus.App.Data\ImaanPlus.App.Data.csproj : warning NU1701: Package 'PCLCrypto 2.0.147' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETCoreApp,Version=v2.0'. This package may not be fully compatible with your project.
2>D:\bit-foundation\_ImaanPlus\src\Client\ImaanPlus.App.Data\ImaanPlus.App.Data.csproj : warning NU1701: Package 'PInvoke.NCrypt 0.3.2' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETCoreApp,Version=v2.0'. This package may not be fully compatible with your project.
2>D:\bit-foundation\_ImaanPlus\src\Client\ImaanPlus.App.Data\ImaanPlus.App.Data.csproj : warning NU1701: Package 'Validation 2.2.8' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETCoreApp,Version=v2.0'. This package may not be fully compatible with your project.
2>  Fody: Fody (version 3.0.3.0) Executing
2>  Fody:   Finished Fody 444ms.
2>ImaanPlus.App.Data -> D:\bit-foundation\_ImaanPlus\src\Client\ImaanPlus.App.Data\bin\Release\netcoreapp2.0\ImaanPlus.App.Data.dll
2>  Fody:   Skipped Verifying assembly since it is disabled in configuration
2>Done building project "ImaanPlus.App.Data.csproj".
2>  Fody: Fody (version 3.0.3.0) Executing
2>  Fody:   Finished Fody 476ms.
2>ImaanPlus.App.Data -> D:\bit-foundation\_ImaanPlus\src\Client\ImaanPlus.App.Data\bin\Release\netstandard2.0\ImaanPlus.App.Data.dll
2>  Fody:   Skipped Verifying assembly since it is disabled in configuration
3>------ Build started: Project: ImaanPlus.App.ViewModel, Configuration: Release Any CPU ------
3>D:\bit-foundation\_ImaanPlus\src\Client\ImaanPlus.App.ViewModel\ImaanPlus.App.ViewModel.csproj : warning NU1701: Package 'PCLCrypto 2.0.147' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project.
3>D:\bit-foundation\_ImaanPlus\src\Client\ImaanPlus.App.ViewModel\ImaanPlus.App.ViewModel.csproj : warning NU1701: Package 'PInvoke.NCrypt 0.3.2' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project.
3>D:\bit-foundation\_ImaanPlus\src\Client\ImaanPlus.App.ViewModel\ImaanPlus.App.ViewModel.csproj : warning NU1701: Package 'Plugin.MediaManager 0.4.5' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project.
3>D:\bit-foundation\_ImaanPlus\src\Client\ImaanPlus.App.ViewModel\ImaanPlus.App.ViewModel.csproj : warning NU1701: Package 'Plugin.MediaManager.Forms 0.4.5' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project.
3>D:\bit-foundation\_ImaanPlus\src\Client\ImaanPlus.App.ViewModel\ImaanPlus.App.ViewModel.csproj : warning NU1701: Package 'Validation 2.2.8' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project.
3>D:\bit-foundation\_ImaanPlus\src\Client\ImaanPlus.App.ViewModel\ImaanPlus.App.ViewModel.csproj : warning NU1701: Package 'Xam.Plugins.Notifier 2.1.0' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project.
3>  Fody: Fody (version 3.0.3.0) Executing
3>  Fody:   Finished Fody 146ms.
3>ImaanPlus.App.ViewModel -> D:\bit-foundation\_ImaanPlus\src\Client\ImaanPlus.App.ViewModel\bin\Release\netstandard2.0\ImaanPlus.App.ViewModel.dll
3>  Fody:   Skipped Verifying assembly since it is disabled in configuration
3>Done building project "ImaanPlus.App.ViewModel.csproj".
4>------ Build started: Project: ImaanPlus.App.View, Configuration: Release Any CPU ------
4>D:\bit-foundation\_ImaanPlus\src\Client\ImaanPlus.App.View\ImaanPlus.App.View.csproj : warning NU1701: Package 'HighlightMarker 1.1.0' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project.
4>D:\bit-foundation\_ImaanPlus\src\Client\ImaanPlus.App.View\ImaanPlus.App.View.csproj : warning NU1701: Package 'HighlightMarker.Forms 1.1.0' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project.
4>D:\bit-foundation\_ImaanPlus\src\Client\ImaanPlus.App.View\ImaanPlus.App.View.csproj : warning NU1701: Package 'PCLCrypto 2.0.147' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project.
4>D:\bit-foundation\_ImaanPlus\src\Client\ImaanPlus.App.View\ImaanPlus.App.View.csproj : warning NU1701: Package 'PInvoke.NCrypt 0.3.2' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project.
4>D:\bit-foundation\_ImaanPlus\src\Client\ImaanPlus.App.View\ImaanPlus.App.View.csproj : warning NU1701: Package 'Plugin.MediaManager 0.4.5' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project.
4>D:\bit-foundation\_ImaanPlus\src\Client\ImaanPlus.App.View\ImaanPlus.App.View.csproj : warning NU1701: Package 'Plugin.MediaManager.Forms 0.4.5' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project.
4>D:\bit-foundation\_ImaanPlus\src\Client\ImaanPlus.App.View\ImaanPlus.App.View.csproj : warning NU1701: Package 'Validation 2.2.8' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project.
4>D:\bit-foundation\_ImaanPlus\src\Client\ImaanPlus.App.View\ImaanPlus.App.View.csproj : warning NU1701: Package 'Xam.FormsPlugin.Iconize 1.0.10' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project.
4>D:\bit-foundation\_ImaanPlus\src\Client\ImaanPlus.App.View\ImaanPlus.App.View.csproj : warning NU1701: Package 'Xam.Plugin.Iconize 1.0.10' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project.
4>D:\bit-foundation\_ImaanPlus\src\Client\ImaanPlus.App.View\ImaanPlus.App.View.csproj : warning NU1701: Package 'Xam.Plugins.Notifier 2.1.0' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project.
4>ImaanPlus.App.View -> D:\bit-foundation\_ImaanPlus\src\Client\ImaanPlus.App.View\bin\Release\netstandard2.0\ImaanPlus.App.View.dll
4>Done building project "ImaanPlus.App.View.csproj".
5>------ Build started: Project: ImaanPlus.App.iOS, Configuration: Release iPhone ------
5>  Connecting to Mac server 192.168.1.181...
5>  Connecting to Mac server 192.168.1.181...
5>  No way to resolve conflict between "System.Runtime, Version=4.0.20.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" and "System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a". Choosing "System.Runtime, Version=4.0.20.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" arbitrarily.
5>  No way to resolve conflict between "System.Diagnostics.Debug, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" and "System.Diagnostics.Debug, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a". Choosing "System.Diagnostics.Debug, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" arbitrarily.
5>  No way to resolve conflict between "System.Collections, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" and "System.Collections, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a". Choosing "System.Collections, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" arbitrarily.
5>  No way to resolve conflict between "System.Globalization, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" and "System.Globalization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a". Choosing "System.Globalization, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" arbitrarily.
5>  No way to resolve conflict between "System.Reflection, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" and "System.Reflection, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a". Choosing "System.Reflection, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" arbitrarily.
5>  No way to resolve conflict between "System.Linq.Expressions, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" and "System.Linq.Expressions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a". Choosing "System.Linq.Expressions, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" arbitrarily.
5>  No way to resolve conflict between "System.Collections.Concurrent, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" and "System.Collections.Concurrent, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a". Choosing "System.Collections.Concurrent, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" arbitrarily.
5>  No way to resolve conflict between "System.Threading, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" and "System.Threading, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a". Choosing "System.Threading, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" arbitrarily.
5>  No way to resolve conflict between "System.Runtime.Extensions, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" and "System.Runtime.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a". Choosing "System.Runtime.Extensions, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" arbitrarily.
5>  No way to resolve conflict between "System.Threading.Tasks, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" and "System.Threading.Tasks, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a". Choosing "System.Threading.Tasks, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" arbitrarily.
5>  No way to resolve conflict between "System.Text.RegularExpressions, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" and "System.Text.RegularExpressions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a". Choosing "System.Text.RegularExpressions, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" arbitrarily.
5>  No way to resolve conflict between "System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" and "System.Numerics, Version=2.0.5.0, Culture=neutral, PublicKeyToken=b77a5c561934e089". Choosing "System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" arbitrarily.
5>  No way to resolve conflict between "System.ObjectModel, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" and "System.ObjectModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a". Choosing "System.ObjectModel, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" arbitrarily.
5>  Consider app.config remapping of assembly "Microsoft.Extensions.Options, Culture=neutral, PublicKeyToken=adb9793829ddae60" from Version "2.0.2.0" [] to Version "2.1.0.0" [C:\Users\ysmoradi\.nuget\packages\microsoft.extensions.options\2.1.0\lib\netstandard2.0\Microsoft.Extensions.Options.dll] to solve conflict and get rid of warning.
5>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(2106,5): warning MSB3277: Found conflicts between different versions of "Microsoft.CSharp" that could not be resolved.  These reference conflicts are listed in the build log when log verbosity is set to detailed.
5>  Consider app.config remapping of assembly "Microsoft.Extensions.Configuration.Abstractions, Culture=neutral, PublicKeyToken=adb9793829ddae60" from Version "2.0.2.0" [] to Version "2.1.0.0" [C:\Users\ysmoradi\.nuget\packages\microsoft.extensions.configuration.abstractions\2.1.0\lib\netstandard2.0\Microsoft.Extensions.Configuration.Abstractions.dll] to solve conflict and get rid of warning.
5>  Consider app.config remapping of assembly "Microsoft.Extensions.DependencyInjection.Abstractions, Culture=neutral, PublicKeyToken=adb9793829ddae60" from Version "2.0.0.0" [] to Version "2.1.0.0" [C:\Users\ysmoradi\.nuget\packages\microsoft.extensions.dependencyinjection.abstractions\2.1.0\lib\netstandard2.0\Microsoft.Extensions.DependencyInjection.Abstractions.dll] to solve conflict and get rid of warning.
5>  Consider app.config remapping of assembly "System.Diagnostics.DiagnosticSource, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51" from Version "4.0.2.1" [] to Version "4.0.3.0" [C:\Users\ysmoradi\.nuget\packages\system.diagnostics.diagnosticsource\4.5.0\lib\netstandard1.3\System.Diagnostics.DiagnosticSource.dll] to solve conflict and get rid of warning.
5>  Consider app.config remapping of assembly "Microsoft.OData.Core, Culture=neutral, PublicKeyToken=31bf3856ad364e35" from Version "7.4.3.20321" [] to Version "7.4.4.20330" [C:\Users\ysmoradi\.nuget\packages\microsoft.odata.core\7.4.4\lib\portable-net45+win8+wpa81\Microsoft.OData.Core.dll] to solve conflict and get rid of warning.
5>  Consider app.config remapping of assembly "Microsoft.Extensions.Configuration, Culture=neutral, PublicKeyToken=adb9793829ddae60" from Version "2.0.2.0" [] to Version "2.1.0.0" [C:\Users\ysmoradi\.nuget\packages\microsoft.extensions.configuration\2.1.0\lib\netstandard2.0\Microsoft.Extensions.Configuration.dll] to solve conflict and get rid of warning.
5>  Consider app.config remapping of assembly "Microsoft.EntityFrameworkCore.Relational, Culture=neutral, PublicKeyToken=adb9793829ddae60" from Version "2.0.3.0" [] to Version "2.1.0.0" [C:\Users\ysmoradi\.nuget\packages\microsoft.entityframeworkcore.relational\2.1.0\lib\netstandard2.0\Microsoft.EntityFrameworkCore.Relational.dll] to solve conflict and get rid of warning.
5>  Consider app.config remapping of assembly "System.Linq.Expressions, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" from Version "4.0.0.0" [C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Linq.Expressions\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Linq.Expressions.dll] to Version "4.0.10.0" [] to solve conflict and get rid of warning.
5>  Consider app.config remapping of assembly "System.ObjectModel, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" from Version "4.0.0.0" [C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.ObjectModel\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.ObjectModel.dll] to Version "4.0.10.0" [C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\Xamarin.iOS\v1.0\Facades\System.ObjectModel.dll] to solve conflict and get rid of warning.
5>  Consider app.config remapping of assembly "System.Reflection, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" from Version "4.0.0.0" [C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Reflection\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Reflection.dll] to Version "4.0.10.0" [] to solve conflict and get rid of warning.
5>  Consider app.config remapping of assembly "Newtonsoft.Json, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed" from Version "10.0.0.0" [] to Version "11.0.0.0" [C:\Users\ysmoradi\.nuget\packages\newtonsoft.json\11.0.2\lib\netstandard2.0\Newtonsoft.Json.dll] to solve conflict and get rid of warning.
5>  Consider app.config remapping of assembly "System.Collections.Immutable, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" from Version "1.2.2.0" [] to Version "1.2.3.0" [C:\Users\ysmoradi\.nuget\packages\system.collections.immutable\1.5.0\lib\netstandard2.0\System.Collections.Immutable.dll] to solve conflict and get rid of warning.
5>  Consider app.config remapping of assembly "System.Runtime.Extensions, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" from Version "4.0.0.0" [C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Extensions\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Runtime.Extensions.dll] to Version "4.0.10.0" [] to solve conflict and get rid of warning.
5>  Consider app.config remapping of assembly "Microsoft.Extensions.Logging, Culture=neutral, PublicKeyToken=adb9793829ddae60" from Version "2.0.2.0" [] to Version "2.1.0.0" [C:\Users\ysmoradi\.nuget\packages\microsoft.extensions.logging\2.1.0\lib\netstandard2.0\Microsoft.Extensions.Logging.dll] to solve conflict and get rid of warning.
5>  Consider app.config remapping of assembly "System.Threading.Tasks, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" from Version "4.0.0.0" [C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Threading.Tasks\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Threading.Tasks.dll] to Version "4.0.10.0" [C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\Xamarin.iOS\v1.0\Facades\System.Threading.Tasks.dll] to solve conflict and get rid of warning.
5>  Consider app.config remapping of assembly "System.Text.RegularExpressions, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" from Version "4.0.0.0" [C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Text.RegularExpressions\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Text.RegularExpressions.dll] to Version "4.0.10.0" [] to solve conflict and get rid of warning.
5>  Consider app.config remapping of assembly "Microsoft.OData.Edm, Culture=neutral, PublicKeyToken=31bf3856ad364e35" from Version "7.4.3.20321" [] to Version "7.4.4.20330" [C:\Users\ysmoradi\.nuget\packages\microsoft.odata.edm\7.4.4\lib\portable-net45+win8+wpa81\Microsoft.OData.Edm.dll] to solve conflict and get rid of warning.
5>  Consider app.config remapping of assembly "Microsoft.Extensions.Logging.Abstractions, Culture=neutral, PublicKeyToken=adb9793829ddae60" from Version "2.0.2.0" [] to Version "2.1.0.0" [C:\Users\ysmoradi\.nuget\packages\microsoft.extensions.logging.abstractions\2.1.0\lib\netstandard2.0\Microsoft.Extensions.Logging.Abstractions.dll] to solve conflict and get rid of warning.
5>  Consider app.config remapping of assembly "Microsoft.Extensions.Configuration.Binder, Culture=neutral, PublicKeyToken=adb9793829ddae60" from Version "2.0.2.0" [] to Version "2.1.0.0" [C:\Users\ysmoradi\.nuget\packages\microsoft.extensions.configuration.binder\2.1.0\lib\netstandard2.0\Microsoft.Extensions.Configuration.Binder.dll] to solve conflict and get rid of warning.
5>  Consider app.config remapping of assembly "System.Runtime, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" from Version "4.0.0.0" [C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Runtime\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Runtime.dll] to Version "4.0.20.0" [] to solve conflict and get rid of warning.
5>  Consider app.config remapping of assembly "System.Diagnostics.Debug, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" from Version "4.0.0.0" [C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Diagnostics.Debug\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Diagnostics.Debug.dll] to Version "4.0.10.0" [C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\Xamarin.iOS\v1.0\Facades\System.Diagnostics.Debug.dll] to solve conflict and get rid of warning.
5>  Consider app.config remapping of assembly "System.Collections.Concurrent, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" from Version "4.0.0.0" [C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Collections.Concurrent\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Collections.Concurrent.dll] to Version "4.0.10.0" [C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\Xamarin.iOS\v1.0\Facades\System.Collections.Concurrent.dll] to solve conflict and get rid of warning.
5>  Consider app.config remapping of assembly "System.Collections, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" from Version "4.0.0.0" [C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Collections\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Collections.dll] to Version "4.0.10.0" [C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\Xamarin.iOS\v1.0\Facades\System.Collections.dll] to solve conflict and get rid of warning.
5>  Consider app.config remapping of assembly "Microsoft.Extensions.DependencyInjection, Culture=neutral, PublicKeyToken=adb9793829ddae60" from Version "2.0.0.0" [] to Version "2.1.0.0" [C:\Users\ysmoradi\.nuget\packages\microsoft.extensions.dependencyinjection\2.1.0\lib\netstandard2.0\Microsoft.Extensions.DependencyInjection.dll] to solve conflict and get rid of warning.
5>  Consider app.config remapping of assembly "Microsoft.Spatial, Culture=neutral, PublicKeyToken=31bf3856ad364e35" from Version "7.4.3.20321" [] to Version "7.4.4.20330" [C:\Users\ysmoradi\.nuget\packages\microsoft.spatial\7.4.4\lib\portable-net45+win8+wpa81\Microsoft.Spatial.dll] to solve conflict and get rid of warning.
5>  Consider app.config remapping of assembly "System.Numerics, Culture=neutral, PublicKeyToken=b77a5c561934e089" from Version "2.0.5.0" [C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\Xamarin.iOS\v1.0\System.Numerics.dll] to Version "4.0.0.0" [C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Numerics\v4.0_4.0.0.0__b77a5c561934e089\System.Numerics.dll] to solve conflict and get rid of warning.
5>  Consider app.config remapping of assembly "Microsoft.EntityFrameworkCore, Culture=neutral, PublicKeyToken=adb9793829ddae60" from Version "2.0.3.0" [] to Version "2.1.0.0" [C:\Users\ysmoradi\.nuget\packages\microsoft.entityframeworkcore\2.1.0\lib\netstandard2.0\Microsoft.EntityFrameworkCore.dll] to solve conflict and get rid of warning.
5>  Consider app.config remapping of assembly "System.Runtime.CompilerServices.Unsafe, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" from Version "4.0.3.0" [] to Version "4.0.4.0" [C:\Users\ysmoradi\.nuget\packages\system.runtime.compilerservices.unsafe\4.5.0\ref\netstandard2.0\System.Runtime.CompilerServices.Unsafe.dll] to solve conflict and get rid of warning.
5>  Consider app.config remapping of assembly "Microsoft.Extensions.Primitives, Culture=neutral, PublicKeyToken=adb9793829ddae60" from Version "2.0.0.0" [] to Version "2.1.0.0" [C:\Users\ysmoradi\.nuget\packages\microsoft.extensions.primitives\2.1.0\lib\netstandard2.0\Microsoft.Extensions.Primitives.dll] to solve conflict and get rid of warning.
5>  Consider app.config remapping of assembly "System.Globalization, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" from Version "4.0.0.0" [C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Globalization\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Globalization.dll] to Version "4.0.10.0" [C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\Xamarin.iOS\v1.0\Facades\System.Globalization.dll] to solve conflict and get rid of warning.
5>  Consider app.config remapping of assembly "System.Threading, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" from Version "4.0.0.0" [C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Threading\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Threading.dll] to Version "4.0.10.0" [C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\Xamarin.iOS\v1.0\Facades\System.Threading.dll] to solve conflict and get rid of warning.
5>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(2106,5): warning MSB3276: Found conflicts between different versions of the same dependent assembly. Please set the "AutoGenerateBindingRedirects" property to true in the project file. For more information, see http://go.microsoft.com/fwlink/?LinkId=294190.
5>  ImaanPlus.App.iOS -> D:\bit-foundation\_ImaanPlus\src\Client\Platforms\ImaanPlus.App.iOS\bin\iPhone\Release\ImaanPlus.iOS.exe
5>  Detected signing identity:
5>    Code Signing Key: ---
5>    Provisioning Profile: ---
5>    Bundle Id: com.Indiefalcon.ImaanPlus
5>    App Id: 2BS9TV6R9K.com.Indiefalcon.ImaanPlus
5>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(791,3): warning : The assembly 'System.IO.Compression.dll' was loaded from a different path than the provided path (provided path: /Users/admin/Library/Caches/Xamarin/mtbs/builds/ImaanPlus.App.iOS/b1dbff07b33f85cd47611b7121de9a26/bin/iPhone/Release/System.IO.Compression.dll, actual path: /Library/Frameworks/Xamarin.iOS.framework/Versions/11.12.0.4/lib/mono/Xamarin.iOS/System.IO.Compression.dll).
5>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(791,3): warning : The assembly 'System.Net.Http.dll' was loaded from a different path than the provided path (provided path: /Users/admin/Library/Caches/Xamarin/mtbs/builds/ImaanPlus.App.iOS/b1dbff07b33f85cd47611b7121de9a26/bin/iPhone/Release/System.Net.Http.dll, actual path: /Library/Frameworks/Xamarin.iOS.framework/Versions/11.12.0.4/lib/mono/Xamarin.iOS/System.Net.Http.dll).
5>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(791,3): warning : The assembly 'System.Runtime.InteropServices.RuntimeInformation.dll' was loaded from a different path than the provided path (provided path: /Users/admin/Library/Caches/Xamarin/mtbs/builds/ImaanPlus.App.iOS/b1dbff07b33f85cd47611b7121de9a26/bin/iPhone/Release/System.Runtime.InteropServices.RuntimeInformation.dll, actual path: /Library/Frameworks/Xamarin.iOS.framework/Versions/11.12.0.4/lib/mono/Xamarin.iOS/Facades/System.Runtime.InteropServices.RuntimeInformation.dll).
5>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(791,3): warning : The assembly 'System.Security.Cryptography.Algorithms.dll' was loaded from a different path than the provided path (provided path: /Users/admin/Library/Caches/Xamarin/mtbs/builds/ImaanPlus.App.iOS/b1dbff07b33f85cd47611b7121de9a26/bin/iPhone/Release/System.Security.Cryptography.Algorithms.dll, actual path: /Library/Frameworks/Xamarin.iOS.framework/Versions/11.12.0.4/lib/mono/Xamarin.iOS/Facades/System.Security.Cryptography.Algorithms.dll).
5>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(791,3): warning : The assembly 'System.Security.Cryptography.Encoding.dll' was loaded from a different path than the provided path (provided path: /Users/admin/Library/Caches/Xamarin/mtbs/builds/ImaanPlus.App.iOS/b1dbff07b33f85cd47611b7121de9a26/bin/iPhone/Release/System.Security.Cryptography.Encoding.dll, actual path: /Library/Frameworks/Xamarin.iOS.framework/Versions/11.12.0.4/lib/mono/Xamarin.iOS/Facades/System.Security.Cryptography.Encoding.dll).
5>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(791,3): warning : The assembly 'System.Security.Cryptography.X509Certificates.dll' was loaded from a different path than the provided path (provided path: /Users/admin/Library/Caches/Xamarin/mtbs/builds/ImaanPlus.App.iOS/b1dbff07b33f85cd47611b7121de9a26/bin/iPhone/Release/System.Security.Cryptography.X509Certificates.dll, actual path: /Library/Frameworks/Xamarin.iOS.framework/Versions/11.12.0.4/lib/mono/Xamarin.iOS/Facades/System.Security.Cryptography.X509Certificates.dll).
5>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(791,3): warning : The assembly 'System.Security.Principal.Windows.dll' was loaded from a different path than the provided path (provided path: /Users/admin/Library/Caches/Xamarin/mtbs/builds/ImaanPlus.App.iOS/b1dbff07b33f85cd47611b7121de9a26/bin/iPhone/Release/System.Security.Principal.Windows.dll, actual path: /Library/Frameworks/Xamarin.iOS.framework/Versions/11.12.0.4/lib/mono/Xamarin.iOS/Facades/System.Security.Principal.Windows.dll).
5>  AOT Compilation exited with code 134, command:
5>  MONO_PATH=/Users/admin/Library/Caches/Xamarin/mtbs/builds/ImaanPlus.App.iOS/b1dbff07b33f85cd47611b7121de9a26/obj/iPhone/Release/mtouch-cache/Build /Library/Frameworks/Xamarin.iOS.framework/Versions/11.12.0.4/bin/arm64-darwin-mono-sgen --debug --llvm -O=gsharedvt -O=-float32  --aot=mtriple=arm64-ios,data-outfile=/Users/admin/Library/Caches/Xamarin/mtbs/builds/ImaanPlus.App.iOS/b1dbff07b33f85cd47611b7121de9a26/obj/iPhone/Release/mtouch-cache/arm64/Microsoft.EntityFrameworkCore.aotdata.arm64,static,asmonly,direct-icalls,full,nodebug,dwarfdebug,msym-dir=/Users/admin/Library/Caches/Xamarin/mtbs/builds/ImaanPlus.App.iOS/b1dbff07b33f85cd47611b7121de9a26/obj/iPhone/Release/mtouch-cache/Build/Msym,llvm-path=/Library/Frameworks/Xamarin.iOS.framework/Versions/11.12.0.4/LLVM/bin/,outfile=/Users/admin/Library/Caches/Xamarin/mtbs/builds/ImaanPlus.App.iOS/b1dbff07b33f85cd47611b7121de9a26/obj/iPhone/Release/mtouch-cache/arm64/Microsoft.EntityFrameworkCore.dll.s,llvm-outfile=/Users/admin/Library/Caches/Xamarin/mtbs/builds/ImaanPlus.App.iOS/b1dbff07b33f85cd47611b7121de9a26/obj/iPhone/Release/mtouch-cache/arm64/Microsoft.EntityFrameworkCore.dll-llvm.o "/Users/admin/Library/Caches/Xamarin/mtbs/builds/ImaanPlus.App.iOS/b1dbff07b33f85cd47611b7121de9a26/obj/iPhone/Release/mtouch-cache/Build/Microsoft.EntityFrameworkCore.dll"
5>  Mono Ahead of Time compiler - compiling assembly /Users/admin/Library/Caches/Xamarin/mtbs/builds/ImaanPlus.App.iOS/b1dbff07b33f85cd47611b7121de9a26/obj/iPhone/Release/mtouch-cache/Build/Microsoft.EntityFrameworkCore.dll
5>  AOTID E606062F-58A2-5F60-48F3-0EC172301438
5>  * Assertion at /Users/builder/data/lanes/5944/64fece5f/source/xamarin-macios/external/mono/mono/mini/aot-compiler.c:3118, condition `t->num_mods == 0' not met
5>  AOT Compilation exited with code 134, command:
5>  MONO_PATH=/Users/admin/Library/Caches/Xamarin/mtbs/builds/ImaanPlus.App.iOS/b1dbff07b33f85cd47611b7121de9a26/obj/iPhone/Release/mtouch-cache/Build /Library/Frameworks/Xamarin.iOS.framework/Versions/11.12.0.4/bin/arm64-darwin-mono-sgen --debug --llvm -O=gsharedvt -O=-float32  --aot=mtriple=arm64-ios,data-outfile=/Users/admin/Library/Caches/Xamarin/mtbs/builds/ImaanPlus.App.iOS/b1dbff07b33f85cd47611b7121de9a26/obj/iPhone/Release/mtouch-cache/arm64/Microsoft.EntityFrameworkCore.Relational.aotdata.arm64,static,asmonly,direct-icalls,full,nodebug,dwarfdebug,msym-dir=/Users/admin/Library/Caches/Xamarin/mtbs/builds/ImaanPlus.App.iOS/b1dbff07b33f85cd47611b7121de9a26/obj/iPhone/Release/mtouch-cache/Build/Msym,llvm-path=/Library/Frameworks/Xamarin.iOS.framework/Versions/11.12.0.4/LLVM/bin/,outfile=/Users/admin/Library/Caches/Xamarin/mtbs/builds/ImaanPlus.App.iOS/b1dbff07b33f85cd47611b7121de9a26/obj/iPhone/Release/mtouch-cache/arm64/Microsoft.EntityFrameworkCore.Relational.dll.s,llvm-outfile=/Users/admin/Library/Caches/Xamarin/mtbs/builds/ImaanPlus.App.iOS/b1dbff07b33f85cd47611b7121de9a26/obj/iPhone/Release/mtouch-cache/arm64/Microsoft.EntityFrameworkCore.Relational.dll-llvm.o "/Users/admin/Library/Caches/Xamarin/mtbs/builds/ImaanPlus.App.iOS/b1dbff07b33f85cd47611b7121de9a26/obj/iPhone/Release/mtouch-cache/Build/Microsoft.EntityFrameworkCore.Relational.dll"
5>  Mono Ahead of Time compiler - compiling assembly /Users/admin/Library/Caches/Xamarin/mtbs/builds/ImaanPlus.App.iOS/b1dbff07b33f85cd47611b7121de9a26/obj/iPhone/Release/mtouch-cache/Build/Microsoft.EntityFrameworkCore.Relational.dll
5>  AOTID 7B37B45F-9AFA-F304-AF18-44C44B543EC9
5>  * Assertion at /Users/builder/data/lanes/5944/64fece5f/source/xamarin-macios/external/mono/mono/mini/aot-compiler.c:3118, condition `t->num_mods == 0' not met
5>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(791,3): error : Could not AOT the assembly '/Users/admin/Library/Caches/Xamarin/mtbs/builds/ImaanPlus.App.iOS/b1dbff07b33f85cd47611b7121de9a26/obj/iPhone/Release/mtouch-cache/Build/Microsoft.EntityFrameworkCore.dll'
========== Build: 4 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Other information:

PackageReferences:

    <PackageReference Include="Xamarin.Forms">
      <Version>3.0.0.530893</Version>
    </PackageReference>
    <PackageReference Include="System.Reflection.Emit" Version="4.3.0" ExcludeAssets="All" />
    <PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="2.0.3" />

Configuration: Release Mode + Linker (All) + LLVM

I'm ready to provide any data you want, and I can perform anything you ask from me.

Thanks in advance.

ysmoradi commented 6 years ago

It seems it's not happening anymore.

erviem99 commented 6 years ago

I have the exact same problem with a project. Did you ever figure out what was wrong in the first place?

ysmoradi commented 6 years ago

At the end, I understood the root cause. I'm using c# and entity framework core on both server and client, so I created a project which was shared between client & server. I added (ms.efCore.relational v2.1) to that shared project. I also added (ms.efCore.SqlServer 2.1) to server and (ms.efCore.qlite v2.0) to client. Remember that there is no stable version of Xamarin ios with ef core 2.1 support. So, make sure that no ef core 2.1 package is referenced. You'll be able to use ef core 2.1 in stable releases version of Xamarin ios soon.