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 https://github.com/firebase/firebase-ios-sdk/issues/6425

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 https://github.com/firebase/firebase-ios-sdk/pull/6498 and waiting for confirmation that it fixes https://github.com/firebase/firebase-ios-sdk/issues/6425

Terms of Service

Privacy Policy

Cookie Policy