Binary packages and non-deterministic missing symbol errors

We're getting reports of missing symbols when using a binary Swift Package. The problem goes away when trying to reduce to a reproducible example. Strangely, moving the header files' location makes the linker error go away. I would only expect a header file location to impact a compile error, not a linker error?

More detail at

Any ideas?

Don't have any immediate ideas, would be great if you could file a feedback report! At first glance, it sounds as if this could potentially be a problem with Xcode's build system, it'll be easier to pass to the right team once it is tracked internally.

After more digging, I suspect the issue might be related to an unnecessary extra copy of the public headers from the binary framework in the repo source exposing an Xcode race condition.

I have a fix proposed in and waiting for confirmation that it fixes

Terms of Service

Privacy Policy

Cookie Policy