I created a bug report for this (IN-147913), but because I haven’t found anything on this topic for newer Unity versions, I thought it might help to post it here. Maybe someone knows more.
- Create new URP project
- Create Web build profile
2.1. Enable Name Files As Hashes - Save project and exit Unity
3.1. (optional) delete Library folder to mimic same behaviour as cloud automation build - Trigger a build in batchmode. Example:
"C:\Program Files\Unity\Hub\Editor\6000.5.3f1\Editor\Unity.exe" -logFile "C:\Entwicklung\Unity\build.log" -projectPath "C:\Entwicklung\Unity\HashnamesTest53" -batchmode -activeBuildProfile "Assets/Settings/Build Profiles/Web.asset" -build "C:\Entwicklung\Unity\HashnamesTest53\Builds" -quit
- Wait until everything has finished
Expected Result: Successful build
Actual Result: Build failed. Error in logfile (attached): “Internal build system error. Backend has requested a buildprogram run 6 times.”
Building regular with the Editor open works. Only batchmode is not working. the build also fails when using Cloud Automation Build. That’s why I tested the local batchmode.
Tested with Unity versions:
- 6.5.3 (fail)
- 6.5.2 (fail)
- 6.4.3 (fail)
- 6.6.0b3 (success)
- 6.3.19 (success)