iOS Build Environment Help Center

fatal error: could not build module 'Foundation', error: redefinition of module 'libxml2', and more

mobiledeveloper

Windows Version: Windows 10 22H2 Build 19045.3448
Builder Version: 3.59
iOS SDK Version: 17.0
Unity Version 2022.3.10f1

I'm trying to build my iOS game using the builder (like everyone else), and the build fails every time. I've tested this on a real Mac device, and it builds perfectly. My game uses no external SDKs or CocoaPods, just stock Unity with a few assets installed that are written in C#. It doesn't use ads or in-app purchases, and doesn't use any special iOS permissions (as far as I know).

I've tried:
- disabling code stripping in Unity and building a development build instead of a release one
- disabling the compiler cache and the "use all CPU cores" option in the builder
- switching from a release to a debug build in the builder

all of those just give me the same errors when I build.

Here are the build logs:
https://pmbaty.com/paste/?18ad0e1c086735d8#EsKe4YyBa1E7HQyaXNLU5s21GUkyJubiPTxZv3Wq53cg

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