无法 AOT 程序集或您必须调用 LoadApplication()

编程入门 行业动态 更新时间:2024-10-23 13:23:30
本文介绍了无法 AOT 程序集或您必须调用 LoadApplication()的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

我的构建中的两个案例(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/xamarin/xamarin-macios/issues/4012.

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

2) The MT3001: Could not AOT the assembly was diagnosed here https://github/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/mono/mono/问题/7637 包含在我们当前的 alpha 和 beta 版本中,也就是 15.7 版本或 Xamarin.iOS 11.10.1.174+.

This was fixed in Mono 5.10 series https://github/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屋!

更多推荐

[db:关键词]

本文发布于:2023-04-27 12:40:48,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1154906.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:或您   程序   AOT   LoadApplication

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!