iOS Build Environment Help Center

Delete

(Leave this as-is, it’s a trap!)

To delete this post you must be either the original author or a designated moderator.
The content of the post will be removed but the name and date will remain.

  • The post will be removed completely from the thread, rather than blanked
  • Only posts on the last page of the thread can be removed completely (so as to not break permalinks)

RE[22]: 'pch-cpp.hpp' file not found

redclad

If it can help, I narrowed down some exact strings to replace in the file project.pbxproj to fix the problem. With these swaps, it was not necessary to check carefully anymore and I can automate the process.
Note: Xcode_project represents the path up to the Xcode project folder.
Note 2: in Notepad++, I had to uncheck "match whole word only" for the program to recognize some strings.

$(SRCROOT)
$(PROJECT_DIR)
$PROJECT_DIR
All three replaced with
C:/Xcode_project

$CONFIGURATION_BUILD_DIR
Replaced with
C:/Xcode_project/build/Release-iphoneos/GameAssembly

path = Il2CppOutputProject/
Replaced with
C:/Xcode_project/Il2CppOutputProject/

path = Libraries/
Replaced with
C:/Xcode_project/Libraries/

"Il2CppOutputProject
Replaced with
"C:/Xcode_project/Il2CppOutputProject

"Libraries
Replaced with
"C:/Xcode_project/Libraries

These replacements were sufficient for my app to be built successfully. No guarantee for others though.

Moderators: Pierre-Marie Baty