Search Issue Tracker
Fixed in 2021.2.X
Votes
2
Found in
2021.2.0a8
Issue ID
1319442
Regression
Yes
Building projects with IL2CPP scripting backend on Windows fail due to fatal error C1083
Steps to reproduce:
1. Create a new Unity project
2. Set scripting backend to IL2CPP in Player Settings
3. Attempt to build the project
Expected result: Build succeeds
Actual result: Build fails due to missing file errors:
c1: fatal error C1083: Cannot open source file: 'Files\Unity\Hub\Editor\2021.2.0a8\Editor\Data\il2cpp\libil2cpp\pch\pch-c.h': No such file or directory
pch-c-14212280230507549953.cpp
C:\Users\username\Downloads\il2cpp\Library\il2cpp_cache\buildstate\y2vq\pch-c-14212280230507549953.cpp: fatal error C1083: Cannot open include file: 'C:\Program': No such file or directory
Workaround: Install Unity in a directory with no space in the path.
Reproduced with: 2021.2.0a8
Didn't reproduce with: 2021.1.0b11, 2020.3.0f1, 2019.4.22f1, 2018.4
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [Dragon Crashers] Build fails in U6
- [Dragon Crashers] 4 Shader error messages on import
- [Dragon Crashers] Readme text is white on light grey
- Cursor stays in front of the first character when entering text in the TextMeshPro field
- Searching in Hierarchy causes unwanted component calls
Resolution Note (fix version 2021.2):
Fixed in 2021.2.0a12