When building on Android with IL2CPP enabled, the building process gets stuck on "Building native binary with IL2CPP". It stays stuck for more than two hours, I then have to kill Unity through the task manager. While it's stuck, the CPU usage of Unity is at 0%.
Restarting Unity and the machine doesn't solve it. I tried deleting the Library folder in the project files, and got it to work 2 times like that, but now even this doesn't fix the problem. Also, deleting the "Il2cppBuildCache" folder in the Library folder after killing Unity makes the file explorer stop responding, restarting it in the task manager just makes the process stop working, which kind of breaks everything in Windows. I then have to force shut down the machine and restart it.
This bug occurred on 2 different Windows 10 machines on every version since Unity 2020.2. If building works once by magic, it immediately stops working afterwards. I even tried on an old project I haven't changed anything on for some time, and the same bug occurred. Rolling back to 2020.1 solves the problem, but I really like the features of the newer versions.
↧