https://kotlinlang.org logo
Title
p

phldavies

02/17/2020, 3:11 PM
Is it at all possible to get code completion for iOS on a non-iOS machine? I'd like to be able to at least put together basic first-pass implementations from my linux workstation when making changes to the shared module if possible.
r

russhwolf

02/17/2020, 3:22 PM
Probably a better question for #kotlin-native, but as far as I know the answer is no
m

Marc Reichelt

02/17/2020, 3:46 PM
@phldavies it’s not a solution to your problem, but maybe it eases the pain a little: would be setting up a CI build for iOS be a small help? Then at least you know if something compiles (or not)
Other idea: you could rent a Mac and jump into it via screen sharing (VNC or something similar). Does anyone have experience with this or a similar approach?
p

phldavies

02/17/2020, 3:53 PM
I have a mac available to use on occasion, and set up with CI - so building isn't the issue. It's the lack of code-completion that gets in the way of hacking on the code from my more powerful linux box. It's whether the iOS SDK headers could be copied from xcode on the mac to somewhere on linux for IDEA to pick up and use for code completion or not. If it's not possible, I'll just have to rely more on the mac 😞
m

Marc Reichelt

02/17/2020, 3:54 PM
For my first approach: set up Bitrise https://www.bitrise.io/ and use the free plan
That’s actually a great suggestion for IDE support of Kotlin Native. Maybe @etolstoy or @akapanina can give some light if that is something on JetBrain’s agenda 🙂
@phldavies But so far, I think if you want to write something for iOS/Mac it’s most likely you’ll need a Mac anyways. Because code completion only is the first step: you’ll need a Mac anyway after that. As soon as you want to build it (and run & debug it) you’ll need the Xcode build chain.
p

phldavies

02/17/2020, 4:22 PM
My hope was, for smaller changes, to use the CI agent running on a shared mac for builds/tests and hack the code locally on linux (when not needing to debug etc) - and revert to using a mac directly when required. Not a huge issue. Thanks for the help
👍 1