Hello, can everyone help me with this project i'm ...
# multiplatform
l
Hello, can everyone help me with this project i'm working on? I'm trying to consume a KMP library i published on maven central but it's not working 🧵
whenever i try to gradle i get this error:
I tried importing this same library on another project and it worked fine, so i suppose i did something wrong with the local plugins i made
Copy code
class KotlinMultiplatformPlugin : Plugin<Project> {

    override fun apply(target: Project) {
        with(target) {

            with(pluginManager) {
                apply(getPluginId("kotlinMultiplatform"))
                apply(getPluginId("androidLibrary"))
            }

            extensions.configure<KotlinMultiplatformExtension> {
                configureKotlinMultiplatform(this)
            }

            extensions.configure<LibraryExtension> {
                configureAndroid(this)
            }
        }
    }
}
This is my plugin
this is the implementation of the
configureKotlinMultiplatform
function
Copy code
internal fun Project.configureKotlinMultiplatform(
    extension: KotlinMultiplatformExtension
) = extension.apply {
    jvmToolchain(17)

    // targets
    androidTarget {
        publishLibraryVariants("release")
        compilations.all {
            kotlinOptions {
                jvmTarget = BuildConstants.JVM_TARGET
            }
        }
    }

    iosX64()
    iosArm64()
    iosSimulatorArm64()
}
I also receive this warning during builds:
updates on this issue: i cloned this repository on my Mac and the build succeeded, this problem only happens on windows
s
You cannot build for ios platform on windows/Linux machine only on Mac , this is expected
1