I’m new to Kotlin Native so please excuse any beginners mistakes. I have tried looking around in the discussions and documentation but can’t find an answer to my question. Please feel free to direct me to an already existing answer if there is one.
I’m investigating Kotlin Native as a possible platform for writing the majority of the data and logic layers for an app intended for both iOS and Android. UI will be written natively. I have started experimenting with a multiplatform library and have successfully built for both platforms, and integrated into test apps.
Now to my question. I’m thinking of doing some file operations and thought of using POSIX (I haven’t managed to find any IO libs for Native. Feel free to suggest…) The documentation states
Windowsbased targets (including
iPhone) we provide the
posixplatform lib. … To use the library just
If I do this, I can successfully compile for iOS, but the JVM build fails with
Unresolved reference: platform. How would I go about using POSIX on Android?