I was able to successfully run an Objective C client app, but only after adding -ObjC to Other Linker Options to resolve runtime crashes from categories being stripped.
Is there a way to specify that the library requires the app to link it with -ObjC?
My Swift client app fails to link with missing StoreKit framework and sqlite library symbols. CocoaPods has frameworks and libraries podspec option to specify required system frameworks and libraries. Is there anything comparable for SwiftPM.
If not, what is the best practice? One approach might be to add references to the needed libraries to a wrapper source target?
There's linkerSettings (Apple Developer Documentation) for the frameworks/libraries part -- you would need to apply them to "FirebaseAnalyticsWrapper", though.
There is a bug in Xcode 12 before beta 4 where SPM linker flags might be ignored. It seems to be fixed in beta 4. We saw the same thing trying to link CFNetwork for Alamofire.