Open inoutch opened 5 years ago
I can confirm there is an issue with 0.14.0
I get the same error when trying to build for iOS, but not with 0.13.0
I've opened an issue with kotlin/native https://github.com/JetBrains/kotlin-native/issues/3900 but it might be just a serialization bug. In any case, check linked issue for more info.
update: I get it with both 0.14.0 and 0.13.0 so I think it's dependent on Kotlin version (which I tried to change but the compiler printed the same version so I couldn't try it out)
There's a corresponding issue in Kotlin tracker: https://youtrack.jetbrains.com/issue/KT-36880
seems like klib-based libraries are not ready yet?
KT-36880 is likely unrelated to this issue.
seems like klib-based libraries are not ready yet?
It is not clear what exactly you mean by this. Kotlin/Native doesn't support any other kind of libraries but klib.
I referred to this:
We don't advertise klib based mpp as a feature yet. We have a tiny preliminary implementation which is under -Xklib-mpp flag.
as far as I understood, cinterop
generates klib files and while K/N itself had no problems but they couldn't be properly processed by other modules in my project. I might be wrong and it's just another bug
"klib based mpp" != klib.
klibs are generated not only by cinterop
, but by compiler itself too, from Kotlin source code.
Any update on this issue or workaround? (Aside from putting all classes in one file, which I am not keen too since it will be 5000 lines long)
Describe the bug I think that the title error is caused by testing using (inheriting) the Serializable class in Main. This error did not occur with kotlin version 1.3.50 and kotlin-serialization 0.13.0.
To Reproduce https://github.com/inoutch/kotchan-game-manager/tree/bug-report
Expected behavior Compile successfully
Environment