Hi everyone I added `AppMetricaAnalytics` as a Coc...
# multiplatform
s
Hi everyone I added
AppMetricaAnalytics
as a CocoaPods dependency in my
shared
module. However, after adding it to
gradle.kts
, the
cinterop
file is not being generated, and I get this error: sharediosArm64Main: cinterop file: /Users/shivanosrati/projects/ProjectName/shared/build/classes/kotlin/iosArm64/main/cinterop/shared-cinterop-AppMetricaAnalytics.klib does not exist If adding
linkOnly = true
resolves the
cinterop
error but prevents me from importing and using
AppMetricaAnalytics
This is my
cocoapods
configuration in `build.gradle.kts`:
Copy code
cocoapods {
    pod("AppMetricaAnalytics") {
        version = "5.9.0"
        extraOpts += listOf("-compiler-option", "-fmodules")
    }
}
I've tried
pod install --repo-update
, cleaning the project, and rebuilding, but the issue persists. Does anyone know how to fix this?
f
try an alternative of Cocoapods for KMP, maybe it could help you 🙂.