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

IL2CPP

-

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

  1. Resolution Note (fix version 2021.2):

    Fixed in 2021.2.0a12

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.