I know in the past the answer to this was "no", bu...
# kotlin-native
r
I know in the past the answer to this was "no", but in the latest updates of Kotlin Native, is it possible to create iOS applications on Linux rather than a Mac?
k
once Apple enables the Xcode build tools to run on Linux, that may become possible
i.e., never
r
Lol, yeah, as I expected... thx
m
I hope this limitation will be lifted a little - creating `.klib`'s should be possible on all combinations of host and target. But creating final applications - impossible.
k
can you currently cross-compile C for macOS on a linux host?
m
To object files - why not? Clang supports cross-compilation. Only linker and related tools missed.
1
k
i wasn't aware the compiler would be capable of generating machine code for Apple platforms
m
And AFAIK since Kotlin 1.4
.klib
contain Kotlin IR, not LLVM IR. So maybe even Clang not needed now.
k
gotcha
of course the klib itself is only useful within a Kotlin project
s
According to JB, last I checked, Linux->Apple cross-compilation isn't possible due to legal reasons. It's entirely possible that there aren't any technical constraints, and it's just Apple being headasses about their software platform as usual 😛
a
Yes, you should not have any (technical) issue generating object files. But that’s only half the game. You would need the SDK and stuff, and — if your goal is to deploy — codesign tools. If you value your time, buying a Mac is probably cheaper
s
You could at least buy used to deny them the satisfaction 😉
😄 1
😂 1
Personally, I've just decided to ignore Apple platforms for my own projects until Apple starts taking developers seriously, but I know that isn't an option for everyone
r
I've managed to get away with that so far, but unfortunately...
😔 1
k
damn the man, and all that 😛
j
if
klib
solves half the problem by letting you develop and delay linking/codesigning, you could get away with renting a mac on some cloud offer such as macstadium, macincloud, etc.. that way you don’t even give money directly to Apple edit: I, in no way, intended to bash/rant against any Apple employees/developers. The last phrase on my comment was purely humorous (tentatively..).
👍 1
a
What a warm welcome for me 🤪
😥 1
l
Welcome, @Alexander von Below! Sent from my Mac.
🤗 1
s
I, in no way, intended to bash/rant against any Apple employees/developers
I don't intent to bash Apple developers or employees, but I will bash Apple's management for anti-consumer and anti-developer decisions that only serve to harm their own platform's compatibility and software base for the sake of more profits 👀
But if you want to develop for Apple platforms, or you use a Mac, that's totally cool! I just have my reasons to avoid it.
👍 1