I have created a kmp library for ios / android. On...
# library-development
v
I have created a kmp library for ios / android. On IOS part it uses some swift-only library using cinterop. When i run: assembleXCFramework everything works. But when i try: publishToMavenLocal it complains that my swift library object in not found: unresolved reference: MySwiftObj What am i doing wrong?
I solved it by adding:
Copy code
metadata {
    compilations.matching { it.name.contains("ios") }.all {
        compileTaskProvider.configure { enabled = false }
    }
}
And it published something. I'll have to check if that works. But right now i feel like i have no idea what i'm doing.
When i run app project on ios that uses my kmp library, i get linker error for the cinterop module.
Now my app project, that uses my kmp project can't find the symbols in the ios swift library. Is it because I disabled the metadata task? I need help