更新
我已经将Xamarin版本从4.5降至4.4并且AOT问题已经消失。我们仍然希望能够进行升级,因此知道如何解决此问题会很有用
Windows开发机器
Mac Build Machine
最近升级了Xamarin并且我有AOT编译问题
无法AOT组装 '/Users/[USER]/Library/Caches/Xamarin/mtbs/builds/[AppName]/905548e7be511ce31e001b2858172e80/obj/iPhone/Debug/mtouch-cache/Build/SQLiteNetExtensions.dll'
构建日志说
AOT编译退出代码134,命令:
MONO_PATH = /用户/ [用户名] /资源库/缓存/ Xamarin / MTBS /建立/ [OurAssemblyName] / 905548e7be511ce31e001b2858172e80 / OBJ / iPhone /调试/ mTouch触摸缓存/建造 /Library/Frameworks/Xamarin.iOS.framework/Versions/10.10.0.33/bin/arm-darwin-mono-sgen --debug -O = gsharedvt --aot = mtriple = armv7-ios,data-outfile = / Users / [UserName] / Library / Caches / Xamarin / mtbs / builds / [OurAssemblyName] / 905548e7be511ce31e001b2858172e80 / obj / iPhone / Debug / mTouch触摸缓存/的ARMv7 / SQLiteNetExtensions.aotdata.armv7,静态,asmonly,直接icalls,饱满,柔和,调试,dwarfdebug,没有直接通话,OUTFILE = / Users / [用户名] / Library /缓存/ Xamarin / MTBS /builds/[OurAssemblyName]/905548e7be511ce31e001b2858172e80/obj/iPhone/Debug/mtouch-cache/armv7/SQLiteNetExtensions.dll.s “/Users/[UserName]/Library/Caches/Xamarin/mtbs/builds/[OurAssemblyName]/905548e7be511ce31e001b2858172e80/obj/iPhone/Debug/mtouch-cache/Build/SQLiteNetExtensions.dll”
Mono Ahead of Time编译器 - 编译程序集 /用户/ [用户名] /资源库/缓存/ Xamarin / MTBS /建立/ [OurAssemblyName] /905548e7be511ce31e001b2858172e80/obj/iPhone/Debug/mtouch-cache/Build/SQLiteNetExtensions.dll
AOTID 22AE78C2-4B42-75BE-C8CC-80A27CDE517F
无法加载签名 SQLiteNetExtensions.Extensions.ReadOperations:GetAllWithChildren到期 to:无法使用令牌01000018解析类型(来自typeref, class / assembly SQLite.Net.ISQLiteConnection,SQLite.Net, Version = 0.0.0.0,Culture = neutral,PublicKeyToken = null) 程序集:SQLite.Net,Version = 0.0.0.0,Culture = neutral, PublicKeyToken = null类型:SQLite.Net.ISQLiteConnection成员:
断言 /Users/builder/data/lanes/4691/3e5ac5ff/source/xamarin-macios/external/mono/mono/mini/mini-generic-sharing.c:3500, 条件`mono_error_ok(& error)'不符合C:\ Program Files (x86)\ MSBuild \ Xamarin \ iOS \ Xamarin.iOS.Common.targets(747,3):错误: 无法AOT组装 '/Users/[UserName]/Library/Caches/Xamarin/mtbs/builds/[OurAssemblyName]/905548e7be511ce31e001b2858172e80/obj/iPhone/Debug/mtouch-cache/Build/SQLiteNetExtensions.dll'
如何调试此问题?