I'm trying out Fleet with KMP with Compose Multipl...
# amper
b
I'm trying out Fleet with KMP with Compose Multiplatform with Amper (pure Amper), seems that the IDE support is pretty neat and I can generate all the necessary stuff by creating a
module.yaml
populating it with what I wish, and then a warning appears that something is missing and it does all the magic for me I've created a module for iOS app, then an option appears to "Generate a sample iOS application" and I'm using it, the "play" button appears at the beginning of the yaml file, I'm using it to build the app, and unfortunately the build fails the message itself doesn't say anything meaningful, but when I dig into the build logs it says "no such module 'kotlin'", in the generated file
iosApp.swift
there is a line
import kotlin
and it seems that it doesn't recognize it, what should I do?
I've also tried changing it to
import iosAppKotlin
and it does not work
also, Android app launches and works fine, would say that the generated manifest is kinda empty however, jvm app does not launch, it seems that it compiles, and after the compilation, instead of launching, it just finishes the task and thats all
but overall must say that the Amper itself looks super promising and super straightforward
🎉 2
z
The JVM app not launching is a Fleet 1.42 issue, it will be fixed in the next version. In the meantime, launching from the command line should work using
./amper run -m jvm-app
(as well as launching from IntelliJ IDEA).
On the import from the Swift side, I know it's been discussed recently, and there might have been some changes - seems like the template doesn't match those changes yet, we'll have to look into it. If I name a module
iosApp
, I can get that to compile with
import iosAppKotlin
in the Swift file (though it's marked as not found while editing it). Created an issue here: https://youtrack.jetbrains.com/issue/AMPER-3833/Issues-when-working-with-iOS-app-module
In general, iOS support in standalone Amper projects will be rougher for now than other platforms - there's a reason why we only announced this version of the tool only for Android and JVM so far. But as you can see, quite a bit of it already works for iOS too 😄
b
thanks for the response! JVM app works fine with the command you've provided, I've also managed to make the iOS app work, it seems that the issues was ... I've named the module
ios-app
and when changed to
iosApp
and changed the import to
import iosAppKotlin
it worked and actually deployed it to the simulator, weird
j
The JVM app not launching is a Fleet 1.42 issue, it will be fixed in the next version
FTR, a bugfix version will be released for Fleet 1.42 soon, and it will contain the fix for this
👌 1
z
To follow-up here: that bugfix version of Fleet has shipped, 1.42.88 (latest public preview) launches JVM apps correctly 🙂