Closed BasBuijsen closed 3 months ago
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
It may be related to FirebaseAnalytics being a binary distribution instead of a source distribution like the other Firebase products.
Swift Package Manager has a similar issue, for which the workaround is to create a placeholder source wrapper target to specify the Analytics dependencies.
I'm going to close since we don't support KMP. The KMP community or stackoverflow may be a better place for support. We can still continue the conversation here though.
Description
When i use the firebase analytics sdk as a dependency in KMP via the cocoapods integration, it cant find symbols for the selected architecture. This issue is not present on all other firebase products so it seems to be an issue with analytics itself. I have been trying to find a solution but i can't seem to find it. Im hoping anyone here can help me out since i think it might be an issue in the sdk itself.
Reproducing the issue
Create a KMP project with cocoapods as integration method, add firebase as pod dependency in the cocoapods section.
Firebase SDK Version
10.27.0
Xcode Version
15.3
Installation Method
CocoaPods
Firebase Product(s)
Analytics
Targeted Platforms
All
Relevant Log Output
If using Swift Package Manager, the project's Package.resolved
Expand
Package.resolved
snippet```json Replace this line with the contents of your Package.resolved. ```
If using CocoaPods, the project's Podfile.lock
Expand
Podfile.lock
snippet```kotlin cocoapods { ios.deploymentTarget = "16.0" framework { baseName = "..." } noPodspec() pod("FirebaseAnalytics") { version = "10.27.0" extraOpts += listOf("-compiler-option", "-fmodules") } } ```