https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
r

rocketraman

10/22/2020, 8:32 PM
What's the best IDE to use on a Mac to be able to open a KMM project and edit both Swift code and Kotlin/Native? I've tried using Appcode with the K/N plugin but it dosen't really seem to understand my project. It ignores the top-level gradle file. If I use the Xcode workspace to open the project, and I can't seem to import my existing shared library code.
b

Big Chungus

10/22/2020, 8:33 PM
AndroidStudio?
r

rocketraman

10/22/2020, 8:34 PM
It doesn't understand the Swift code, nor the iosMain integrations with Obj-C.
Great for the Android bit... I can use Android Studio for Android, AppCode for Swift. But that still leaves the shared lib code that calls Obj-C code. I really want completion for that Obj-C stuff, its such a pain to try and puzzle out the right calls from docs.
b

Big Chungus

10/22/2020, 8:46 PM
Well 1.4 finally gave us ability to run both simulators from the same IDE. Hopefully 1.5 will bring Swift support to Android studio
As things stand now, there's no one-fits -all solution yet
r

rocketraman

10/22/2020, 8:46 PM
Trying IDEA ultimate but it can't load the project due to the code 65 error from yesterday...
h

HankG

10/23/2020, 5:18 PM
I was curious about this too playing around
Was disappointed couldn't load AppCode Swift stuff into Android Studio for that
So the recommended way is Xcode for Swift and Android Studio for KMM and IntelliJ for the JS part?
b

Big Chungus

10/23/2020, 5:22 PM
Can't you install some js plugin on androidStudio?
r

rocketraman

10/23/2020, 8:21 PM
As far as I can tell, yeah, its AppCode and XCode for Swift, Android Studio/Ultimate for Android and shared code. Ultimate is good for JS too, so with Ultimate you need two IDEs. I doubt Android Studio will get Swift support any time soon -- Android Studio is made by Google (from a codebase shared with Jetbrains) and I doubt Google will put much effort into supporting Swift -- Google specifically bills Studio as a "slimmed down" version of IJ specifically for Android devs. But IJ might get the required support from AppCode.
Android Studio/Ultimate for Android and shared code
Actually, no, shared native code isn't well handled by Ultimate -- it has no completion for Obj-C libs AFAICT.
So I don't see any good tool yet for shared native code dev.
10 Views