paulb777
(Paul Beusterien)
1
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 FirebaseAnalytics symbols not found when installed via SPM · Issue #6425 · firebase/firebase-ios-sdk · GitHub
Any ideas?
NeoNacho
(Boris Buegling)
2
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.
paulb777
(Paul Beusterien)
3
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 FirebaseAnalytics symbols not found when installed via SPM · Issue #6425 · firebase/firebase-ios-sdk · GitHub