Hello everyone, I’m trying to make common Firebase...
# multiplatform
y
Hello everyone, I’m trying to make common Firebase Analytics and Crashlytics implementations for android and IOS. But I’m just facing a problem adding Firebase dependencies, I’m getting the error:
Project already has a CocoaPods dependency with the name FirebaseCrashlytics
. Any idea how to solve this?
Copy code
kotlin {
    android()
    ios()

    cocoapods {
        summary = "This module contains implementation of analytics and crashlytics"
        ios.deploymentTarget = "15.0"
        version = "1.10.2"
        framework {
            baseName = "monitoring"
               pod("FirebaseCrashlytics")
            // pod("FirebaseAnalytics")
        }
    }
}
a
Hi! I’ve tried adding this pods as dependencies and it had worked out of the box. Can you share the source code or a minimal reproducer?
y
It’s started working, I’m not sure why, I’ve tried a lot of configurations with and without ios(), and it started working 🙂
c
Having this issue today, did you ever work out the cause?