How to reproduce:
1. Open the user-attached project “Il2CppTest”
2. Build it on a reproducible version of Unity
3. Open the project in any other version of Unity, for example, 2021.3.5f1
4. Build the project to the same folder as the first build
Expected result: Project is successfully built
Actual result: Errors are logged in the Console
Reproducible with: 2021.3.8f1, 2021.3.11f1
Not reproducible with: 2020.3.40f1, 2021.3.7f1, 2022.1.17f1, 2022.0b8, 2023.1.0a10
Reproduced on: Windows 11 Pro
Note:
-The issue is reproducible both in Mono and IL2CPP builds
-The issue is also reproducible if you then build a project to the new folder, but even though the errors occur, the build is successful
- The failure comes when enlighten cache was generated using a newer version of Unity, then moving back to a slightly older version which expects older version of the Archive file format (prior to [Internal link]/[Internal link] backport)
The errors:
Unable to read header from archive file: memarchive0
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun ()
Mounting archive file system for lighting data asset failed!
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun ()