Hi there, is there a way to cross-compile a KLib f...
# kotlin-native
s
Hi there, is there a way to cross-compile a KLib for to the ios and macbook targets from a linux host ?
g
You cannot compile for iOS/macOS on linux, only on mac
o
Correct, no cross-compilation to Apple targets from other hosts.
s
OK, thanks !
g
I’m curious. Is it impossible only because all platform libraries are mac only or even toolchain to build is not available? As I understand you can build something to llvm bitcode that compatible with iOS/macOS
m
It's possibe technically, but illegal. Well, maybe legal for personal use, but not in general. See https://github.com/tpoechtrager/osxcross
o
Well, it’s not absolutely impossible, we just need to have tools like Apple linker and startup files to create proper binaries.
n
There are some workarounds available for compiling and running Mac sw (incl iOS). One possible option is macincloud: https://www.macincloud.com/