Last updated January 24, 2023 at 01:18 AM
Today we are going to solve one of Unity 3d: Deterministic compilation failed. You can disable Deterministic builds in Player Settings…
Yesterday we encountered this issue after updating to Unity 2020.1.1f1. Our game could not run in this version of Unity. If you have encountered the same problem, here is the solution.
The game we developed was with an older version of Unity. After importing into the new editor, we see this text displayed:
”Deterministic compilation failed. You can disable Deterministic builds in Player Settings… error CS8357: The specified version string contains wildcards, which are not compatible with determinism. Either remove wildcards from the version string, or disable determinism for this compilation “.
Causes of deterministic compilation failure
We suspect that the main cause of this error comes from the incompatibility with the new Unity 3d version 2020.1.1f1.
To solve this problem we have therefore deactivated the deterministic compilation. Following, we show you exactly how.
Solution to Unity 3d issues
- To resolve this issue, click Project Settings… by following this path using the pointer on the bar at the top: Edit> Project Settings…
- Then in the window that appears, type in search deterministic .Scroll down among the results, more precisely in Other Settings, you will find Use deterministic compilation
- Uncheck the box Use deterministic compilation in blue on the image above.
- Then restart your Unity 3d and voila.
Even though the steps before the last one were found quite easily, restarting the editor was the missing link.
The trick didn't work without restarting the editor. This made us constantly question the previous steps.
Restart recompiles all resources Assets with the new setting. Restarting is the only method we have found to recompile Unity 3d project Assets.
Being a beginner in handling the editor, we hope apprendre other methods and best practices to move forward properly.