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[1]: fatal error: could not build module 'Foundation', error: redefinition of module 'libxml2', and more

Pierre-Marie Baty

Hello

There are identified problems with the iOS 17 SDK, it's buggy because it defines the libxml module in several places. The next update of the builder will fix it. In the meantime, here's how to fix it yourself:

In the builder's install directory, overwrite the file called "SDK\usr\include\libxml2\libxml\module.modulemap" (which is a module *definition* file) with the "SDK\usr\include\libxml2\module.modulemap" one (which is a module *redirection* file). This way the compiler knows that libxml, libxml2 and libxml2\libxml are in fact the same module.

Moderators: Pierre-Marie Baty