diff --git a/SKIE/skie-gradle/plugin/src/kgp_common/gradle_common/kotlin/co/touchlab/skie/plugin/SkieGradlePlugin.kt b/SKIE/skie-gradle/plugin/src/kgp_common/gradle_common/kotlin/co/touchlab/skie/plugin/SkieGradlePlugin.kt index 13d4e6b59..6be1d32f5 100644 --- a/SKIE/skie-gradle/plugin/src/kgp_common/gradle_common/kotlin/co/touchlab/skie/plugin/SkieGradlePlugin.kt +++ b/SKIE/skie-gradle/plugin/src/kgp_common/gradle_common/kotlin/co/touchlab/skie/plugin/SkieGradlePlugin.kt @@ -42,6 +42,8 @@ abstract class SkieGradlePlugin : Plugin { return } + warnOnEmptyFrameworks() + FatFrameworkConfigurator.configureSkieForFatFrameworks(project) configureEachKotlinFrameworkLinkTask { @@ -80,6 +82,13 @@ abstract class SkieGradlePlugin : Plugin { } } +internal fun Project.warnOnEmptyFrameworks() { + val hasFrameworks = extensions.findByType(KotlinMultiplatformExtension::class.java)?.appleTargets?.any { it.frameworks.isNotEmpty() } ?: false + if (!hasFrameworks) { + logger.warn("w: No Apple frameworks configured. Make sure you applied SKIE plugin in the correct module.") + } +} + internal fun Project.configureEachKotlinFrameworkLinkTask( configure: KotlinNativeLink.() -> Unit, ) {