tylerwilson
08/08/2024, 2:34 PMtapchicoma
08/08/2024, 2:41 PMTimofey Solonin
08/08/2024, 4:09 PMembedAndSignAppleFrameworkForXcode
integration runs in an Xcode build phase and build settings from the project will be visible as environment variables in the build script. In particular you are probably interested in PLATFORM_NAME
.
In your build script you could write conditional logic based on those environment variables:
// build.gradle.kts
if (providers.environmentVariable("PLATFORM_NAME").get() == "iphonesimulator") {
// ...
}
tylerwilson
08/08/2024, 4:16 PMtylerwilson
08/08/2024, 6:56 PMShowing Recent Messages
androidx.compose.compiler.plugins.kotlin.IncompatibleComposeRuntimeVersionException: The Compose Compiler requires the Compose Runtime to be on the class path, but none could be found. The compose compiler plugin you are using (version 1.5.12) expects a minimum runtime version of 1.0.0.
tylerwilson
08/08/2024, 7:09 PMif (!isBuildingCore) {
// implementation(compose.runtime)
// implementation(compose.foundation)
// implementation(compose.material3)
// implementation(compose.materialIconsExtended)
// implementation(compose.components.resources)
}
It would be great if the CMP team at least made stubs for watchOS. 🙂