I think I found a somewhat interesting problem: I ...
# kotlin-native
s
I think I found a somewhat interesting problem: I just converted my native project to a mpp as I was having unrelated problems with code completion. I moved my native code to a sourceset I called commonNative. But as this is just a sourceset and not a target, I can't add any cinterop libraries. Compilation still works, but the interop packages are shown as unknown (which is right, the libraries are only known at compile time as they are defined in the actual targets). Any ideas on how I could fix this?
r
It's not implemented yet, cinterops do work properly only on platform targets and not common ones: https://youtrack.jetbrains.com/issue/KT-26968
👍 1
s
Thanks for the link, watched and voted 🙂