Adding the -ObjC option fixed this for us.
If you've installed FirebaseAnalytics, add the -ObjC option to Other Linker Flags in the Build Settings tab.
https://github.com/firebase/firebase-ios-sdk/blob/main/SwiftPackageManager.md
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: