Ian Vink
Ian Vink

Reputation: 68800

Xamarin "Attempting to JIT compile method "

Suddenly my app is chucking these errors on a NuGet package that was recently updated to 64 bit support.

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.

Its stymied me.

It's called here:

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

enter image description here

Upvotes: 2

Views: 3840

Answers (2)

I newer versions the setting to enable Reflection capabilities is called "Enable the Mono interpreter": enter image description here

Upvotes: 1

JamesMontemagno
JamesMontemagno

Reputation: 3792

I figured it out. You must enable generic type sharing in the settings. It is on by default. I did not document this and I will add it to the readme:

Enable generic value type sharing

Upvotes: 4

Related Questions