Title says it all. Builder takes forever, basically hangs on “Building native binary with IL2CPP…”. Been going for about half an hour now, with the progress bar stuck at the exact same spot since it built for 5 minutes.
If this is the first time building for that project, it will take longer. Unity will cache a ton of IL2CPP stuff inside the Library/ folder within the project, and it should be much faster subsequently.
I will admit though, half an hour is pretty long. Usually that amount of time for builds is only reached when you have a lot of scene lighting, which can take a looooooooong time to bake.
If your computer is pretty slow, or your project is on HDD instead of SSD, the process can take exponentially longer than you’d otherwise expect.
It’s a 2D project with just UI (mostly images and a few SVGs for icons) and barely any code.
Building for only ARMx64, project, editor and build target folder are on the same NVMe SSD. It’s currently taking over 45 minutes…
Project was built using the standard 2D template, not the 2D mobile template (although that one is even more applicable in hindsight)
Also linking the editor log, just in case.
Edit: The completed build within 29 seconds was done with MONO instead of IL2CPP, but wanted to try IL2CPP again after reinstalling the editor and moving the project and build target folder to my new SSD
7206076–865537–Editor.txt (780 KB)
Can you have a look at the process tree in Process Explorer (you may need to download it) when the builds is hanging at this point? I would be curious to know what part of the build process is stuck.
Yes, thanks for the information. We’ve seen this hang happen on a few customer machines, but we’re unable to reproduce it here yet. I have a few more questions to help us maybe narrow down the cause:
Do you have an anti-virus program running? If so, which one?
Are you using Bit Defender to encrypt this disk drive?
Thanks!
I’m using Bitdefender Antivirus Plus, but I do not encrypt any of my drives in any way.
Bitdefender is also not showing any kind of message when building.
Can you temporarily disable Bit Defender and tty to build again?
Build completed successfully in 295 seconds. Guess I’ll have to disable Bitdefender until I can manage to add a dynamic exception for all builds. Thank you!
Thank you for trying that - that is excellent information!