fatal error C1083: cannot open SharedPCH file in Unreal Engine
When a C++ project is built for packaging, the compiler needs shared precompiled headers (SharedPCH). If the project path contains non-ASCII characters, or sits in a OneDrive-synced folder, the path can be garbled or locked and the compiler cannot open those files.
Paste your log: find the cause in seconds Runs in your browser, nothing is uploaded.
Common causes
- Non-ASCII characters (accents, Cyrillic, CJK) in the user name or project path.
- The project is inside a OneDrive (or other sync tool) folder.
How to fix it
- Move the project to a short ASCII-only path outside synced folders, for example D:\Projects\MyProject.
- Delete the Binaries and Intermediate folders, regenerate project files, and build again.
- If the engine itself is under a non-ASCII path, move it too.
Questions
Can it be caught before cooking?
Yes, it can be checked before you start a cook: Flag non-ASCII characters and OneDrive/sync folders in project and engine paths.