shiva
03/08/2025, 1:09 PMAppMetricaAnalytics
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`:
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?François
03/11/2025, 4:46 PM