Closed dorisoy closed 3 years ago
Hi @dorisoy ! (I'm a collegue of @JeremyBP, he's on hollidays currently ;-) ) We may forgot some preserve attribute, but it's a "classic linker problem" for a lot of tiers-packages/methods to be removed unfortunatly by the linker...
To solve your issue quickly, you can add the Apizr assembly/methods on a "LinkDescription.xml" file (Android & iOS if needed) to preserve it : [https://docs.microsoft.com/en-us/xamarin/cross-platform/deploy-test/linker]
I hope this can help you, and when Jeremy will come back, he will watch on this "preserve" attribute, and get back to you.
Thanks for reporting this issue. Preserve attribute added and LinkDescription.xml works great to
Hi,JeremyBP !
I used apizr for production builds in my xamarin ,when linker setting: "AndroidLinkMode = SdkOnly" , an error occurred at runtime。
called ArgumentException --> services.UseApizrFor();
System.ArgumentException: 'Your Apizr manager class must inherit from IApizrManager generic interface or derived'
I think the apizr assembly should be removed by linker,do you provide preserve attribute , or falseflag to solve the issue ?