gpt4 book ai didi

c# - Xamarin "Attempting to JIT compile method "

转载 作者:行者123 更新时间:2023-12-02 04:25:04 28 4
gpt4 key购买 nike

突然间,我的应用程序在最近更新为 64 位支持的 NuGet 包上抛出了这些错误。

Attempting to JIT compile method Refractored.Xam.Settings.Settings:GetValueOrDefault<bool> (string,bool) while running with --aot-only. See http://docs.xamarin.com/ios/about/limitations for more information.

它阻碍了我。

这里调用:

    public static bool RememberMeSwitch
{
get { return AppSettings.GetValueOrDefault(CacheKeys.RememberMeSwitch, false); }
set { AppSettings.AddOrUpdateValue(CacheKeys.RememberMeSwitch, value); }
}

enter image description here

最佳答案

我明白了。您必须在设置中启用通用类型共享。默认情况下它是打开的。我没有记录这一点,我会将其添加到自述文件中:

Enable generic value type sharing

关于c# - Xamarin "Attempting to JIT compile method ",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27709327/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com