Adding BuildOptions.AllowDebugging crashes Android Build with a IL2CPP error

Hi,

when adding BuildOptions.AllowDebugging to our build script, the Android build crashes with the following error:

Building Library\Bee\artifacts\Android\d8kzr\libil2cpp.so failed with output:
Library/Bee/artifacts/Android/87lik/0e5d_data0.lump.o: In function `il2cpp::metadata::CustomAttributeCreator::VisitCtor(MethodInfo const*, il2cpp::metadata::CustomAttributeArgument*, unsigned int)':

I’ve attached the full stacktrace. Any ideas?
Thanks a lot!

Ran into this issue as well!
Eventually found more details about the issue and possible fix in other threads: