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[3]: 'pch-cpp.hpp' file not found

Maximilian Schmidt

Good evening again, so just to confirm i understood you correctly.

i ran a powershell script which does what it is supposed to do, if i understood you correctly:

# Define the folder to search
$folder = "C:/IOS_PROJECT_GPT/Il2CppOutputProject/Source/il2cppOutput/"

# Get all C++ files in the folder and its subfolders
$cppFiles = Get-ChildItem $folder -Recurse -Filter "*.cpp"

# Loop through each C++ file and add "\n" to the beginning
foreach ($file in $cppFiles) {
# Read the file contents
$content = Get-Content $file.FullName

# Add "\n" to the beginning of the file contents
$content = "\n" + $content

# Write the modified file contents back to the file
Set-Content $file.FullName $content
}

which results in this for the example file: "UnityEngine.TextCoreTextEngineModule1.cpp"

\n#include "pch-cpp.hpp" struct Dictionary_2_tC20B3D6AE4370C892734F670EF4D1FB9CE91F371; .....

This is how you meant it to be, right? this still outputs:

C:/IOS_PROJECT/Il2CppOutputProject/Source/il2cppOutput/UnityEngine.TextCoreTextEngineModule1.cpp:1:13: fatal error: 'pch-cpp.hpp' file not found
<U+FEFF>#include "pch-cpp.hpp"

thanks again :)

Moderators: Pierre-Marie Baty