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

Pierre-Marie Baty

Congratulations for this very interesting finding ! I think the Unity il2cpp dev team should read this.

Your workaround can certainly be automated. PROJECT_DIR is the directory where the .xcodeproj directory itself is. And SRCROOT is the directory where your project sources are. Conveniently on Unity projects they're the same. More info here: https://help.apple.com/xcode/mac/8.3/#/itcaec37c2a6

:: @Pierre-Marie Baty added on 10 Sep ’23 · 15:03

P.S. Use "pbxprojparse -query" to have the toolchain resolve these variables for you :-)

Moderators: Pierre-Marie Baty