iOS Build Environment Help Center

'pch-cpp.hpp' file not found

GreenEyedExplorer

Hi. I have written a Python script. Maybe it will help someone:

---

file_path = "g:/folder/Unity-iPhone.xcodeproj/project.pbxproj"
with open(file_path, 'r') as file:
file_content = file.read()
new1 = file_content.replace("$(SRCROOT)", "g:/folder")
new2 = new1.replace("$(PROJECT_DIR)", "g:/folder")
new3 = new2.replace("$PROJECT_DIR", "g:/folder")
new4 = new3.replace("$CONFIGURATION_BUILD_DIR", "g:/folder/build/Release-iphoneos/GameAssembly")
new5 = new4.replace('"Il2CppOutputProject', '"g:/folder/Il2CppOutputProject')
new6 = new5.replace('"Libraries', '"g:/folder/Libraries')
new7 = new6.replace("path = Libraries/", "path = g:/folder/Libraries/")
new8 = new7.replace("path = Il2CppOutputProject/", "path = g:/folder/Il2CppOutputProject/")

with open(file_path, 'w') as file:
file.write(new8)
print("String replaced successfully.")

---

Well, it does not work on Unity 2023.1.11f.
Any progress compiling? Ideas?

Append

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

Only the original author or a moderator can append to this post.

Pro tip: Use markup to add links, quotes and more.

Moderators: Pierre-Marie Baty