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

Pierre-Marie Baty

This is the same problem as this one:

https://www.pmbaty.com/iosbuildenv/help/thread.php?path=Problem%20solving/&file=fatal-error-could-not-build-module-foundation-error-redefinition-of-module-libxml2-and-more

The Swift interface of the iOS 17 SDK is broken and needs a manual fix documented here. This fix will be automated in the next version of the builder. Apple is probably not aware of this because they supply precompiled Swift modules with Xcode, so the compiler infrastructure doesn't need to recompile the Swift interfaces of the SDK into Swift modules.

Moderators: Pierre-Marie Baty