iOS Build Environment Help Center

'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.

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