Open Tommigun1980 opened 3 years ago
@moljac Hi. Any chance you guys could release a new version of the 'Google.ZXing.Core' package as it effectively prevents Android apps using Facebook from using the LLVM compiler?
Thank you.
@Tommigun1980 checkout this comment https://github.com/xamarin/xamarin-android/issues/5764#issuecomment-856062396. Looks like the issue is with the GC.KeepAlive , see https://github.com/xamarin/xamarin-android/issues/5764#issuecomment-856061277 for more details.
@dellis1972 Fantastic, thank you so much for finding that comment and referring it to me! The workaround worked flawlessly, and proves that the library is intact after all. 🥇
I'll leave this ticket open in case someone else runs into this problem and is about to report it, so feel free to close it when it's no longer relevant to keep this open.
Hi.
If a Xamarin.Android project references 'Google.ZXing.Core' and is using APT + LLVM, the deployment build step will fail with the following:
This is chronicled at https://github.com/xamarin/xamarin-android/issues/5779 and @dellis1972 verified at https://github.com/xamarin/xamarin-android/issues/5779#issuecomment-854650640 that said assembly indeed is broken ("[...] the Assembly being AOT'd has invalid IL in it which is breaking the compiler.").
While they investigate what is going on could you guys maybe release a rebuilt version of 'Google.ZXing.Core' so that Android apps can use LLVM again?
The 'Google.ZXing.Core' package is referenced from 'Xamarin.Facebook.Android' -> 'Xamarin.Facebook.Common.Android'. This means that any app that uses the Facebook SDK can't be compiled with AOT + LLVM until this is resolved.
Thank you!