Has anyone successfully built an android build with AllowDebugging flag enabled?

I meant an IL2CPP proper build. Seems like the build takes forever and is taking hundreds of GB (at least 450GB after 1 hour) on my hard drive. Without this flag, the build takes just 10-15 min max.
Is this normal?

Unity 2021.3.20f
8989579--1237606--upload_2023-5-3_19-7-43.png

After 3 hours and >500GB
8990593--1237891--upload_2023-5-4_6-58-3.png

We’ve just recently seen this behavior in an internal bug report. It seems there is some bug in the ld.gold.exe linker (used for ARMv7 builds only) from the Android NDK that Unity 2021.3. uses. When script debugging is enabled on some projects, the linker will run forever, filling up the disk until it runs out of space.

We’re not sure what causes this issue, but there are a few work arounds.

  1. You can disable script debugging.
  2. If you need use script debugging, select ARM64 as the only architecture.
  3. Use Unity 2022.2 or newer, where we use a newer NDK and the LLD linker, which seems to avoid this issue.
1 Like

Thanks, will try out the options!

Hey Josh, Raul here, just checking if the issue is solved for Unity 2021.

Updating to 2022 is not an option for us due to multiple incompatibilities, and this is the only issue we find to update to 2021.

Unfortunately we did not back port the NDK update to Unity 2021, so you will likely need Unity 2022 or later to workaround this issue.