无法 AOT 程序集或您必须调用 LoadApplication() [英] Could not AOT the assembly or You MUST invoke LoadApplication()

查看:32
本文介绍了无法 AOT 程序集或您必须调用 LoadApplication()的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的构建中的两个案例(xamarin.ios):

Two case in my build(xamarin.ios):

1) 构建选项设置时:

1) When build option setting:

链接器行为:链接全部

在这种情况下,应用程序崩溃并显示此错误消息

In that case application crash with this error message

您必须在调用 base.FinishedLaunching() 之前调用 LoadApplication()

You MUST invoke LoadApplication () before calling base.FinishedLaunching ()

2) 构建选项设置时:

2) When build option setting:

链接器行为:仅链接框架 SDK

Linker behavior: Link Framework SDKs Only

我收到错误:

MT3001:无法 AOT 程序集.

MT3001: Could not AOT the assembly.

/Users/macmini01/Desktop/Per/RunningCode_Both/XXX_Mobile Sourcecode_2Apr2018/XXX/XXX.iOS/MTOUCH:错误MT3001:无法AOT程序集'/Users/macmini01/Desktop/Per/RunningCode_Both/XXX_Mobile Sourcecode_2Apr20XXX.iOS/obj/iPhone/Debug/mtouch-cache/64/Build/OsmSharp.UI.dll' (MT3001) (XXX.iOS).

/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).

推荐答案

这是在 https://github.com/xamarin/xamarin-macios/issues/4012.

2) MT3001:无法 AOT 组件在此处被诊断 https://github.com/xamarin/xamarin-macios/issues/4012#issuecomment-386012378 与AOT编译器条件不满足有关,导致crash,导致AOT编译器无输出,通向 MT3001.

2) The MT3001: Could not AOT the assembly was diagnosed here https://github.com/xamarin/xamarin-macios/issues/4012#issuecomment-386012378 to be related to an AOT compiler condition not met, leading to a crash, leading to no output from the AOT compiler, leading to the MT3001.

此问题已在 Mono 5.10 系列中修复 https://github.com/mono/mono/问题/7637 包含在我们当前的 alpha 和 beta 版本中,也就是 15.7 版本或 Xamarin.iOS 11.10.1.174+.

This was fixed in Mono 5.10 series https://github.com/mono/mono/issues/7637 which is included in our current alpha and beta builds, a.k.a 15.7 release or Xamarin.iOS 11.10.1.174+.

这篇关于无法 AOT 程序集或您必须调用 LoadApplication()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆