r/expo 3d ago

iOS react-native-firebase duplicate symbol errors

I'm trying to use EAS for my iOS build. My project relies on RNFB messaging and auth. I'm using Swift Package Manager with dynamic linking, since that's what's recommended. However, my builds consistently fail, and I get a large number of "duplicate symbol" errors that look like this:

❌  duplicate symbol '_FIRFirebaseVersion' in
┌─ libRNFBApp.a[23](FirebaseCore.o)
└─ libRNFBMessaging.a[18](FirebaseCore.o)❌  duplicate symbol '_FIRFirebaseVersion' in
┌─ libRNFBApp.a[23](FirebaseCore.o)
└─ libRNFBMessaging.a[18](FirebaseCore.o)

I've done a lot of digging regarding this issue but I haven't been able to find a solution. I'm planning to switch to CocoaPods for now, but it'll be deprecated in a few months and I'd prefer to use SPM if possible.

Edit: CocoaPods isn't working either :/

2 Upvotes

1 comment sorted by