Hello, all! I'm new to Kotlin Multiplatform, tryin...
# multiplatform
a
Hello, all! I'm new to Kotlin Multiplatform, trying to use some of my iOS libs code in the Kotlin common code, but I'm having some problems with the cinterop configuration. The klib file seems to be built but when I'm trying to import a class to be used in Kotlin, it's not finding it (not even the package). I've seen that there's a klib utility to inspect it, but I can't find that klib utility. where can I get it?
k
you can't use a platform specific dependency in the common source sets
a
Is that so? I thought you could reference the interface stubs cinterop would create. Thanks. In any event, I can't import it in the iosMain either. I still think there's something wrong in the created klib but I can't find what it is. Any idea how can I execute "klib info" or "klib content" to see what's there? I can't find the klib command/script/whatever
k
i've never had to do that myself
try running the gradle import again just to see if that helps