In a multiplatform module, I would like to use Compose for Android and Desktop in a shared source set (
javaMain
), but keep assembling a normal iOS framework (to be consumed from an XCode project with SwiftUI), and also use Kotlin/React for UI in
jsMain
. I managed to put the Compose code into
javaMain
and
android
and
desktop
target compile just fine. I also managed to disable the Compose plugin for JS by adding
compose.web.targets()
, and it also compiles just fine. But I can't find a way to disable the Compose plugin for iOS. My iOS build fails with:
Compilation failed: Cannot find the Composer class in the classpath
Is there any workaround? I'm using Compose
1.1.1
.