Hello all, I'm running into a cinterop issue. I h...
# multiplatform
k
Hello all, I'm running into a cinterop issue. I have two modules, one implements the other. The one module has cinterop declared, however when trying to build the module that implements the cinterop module I get an error that the cinterop cannot be found.
Copy code
// ModuleA
nativeTarget.apply {
    compilations.getByName("main") {    
        cinterops {                     
            val libcurl by creating     
        }                               
    }    
}
Copy code
// ModuleB
kotlin {
   sourceSets {
      commonMain.dependencies {
         implementation(project(":moduleA"))
      }
   }
}
Then the error I get when building
moduleB
is:
Copy code
e: KLIB resolver: Could not find "com.example:moduleA-cinterop-libcurl" in [/Users/kevinschildhorn/Documents/MyProject, /Users/kevinschildhorn/.konan/klib, /Users/kevinschildhorn/.konan/kotlin-native-prebuilt-macos-aarch64-2.0.21/klib/common, /Users/kevinschildhorn/.konan/kotlin-native-prebuilt-macos-aarch64-2.0.21/klib/platform/ios_arm64]