Skip to content

Adding this plugin breaks the project #39

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
MrAsterisco opened this issue Jul 15, 2021 · 0 comments
Open

Adding this plugin breaks the project #39

MrAsterisco opened this issue Jul 15, 2021 · 0 comments

Comments

@MrAsterisco
Copy link

First of all, thanks for building this plugin!

I was looking for a simple solution to build an XCFramework for my project, but unfortunately I'm having an issue as soon as I add the plugin reference.
I have a medium-sized project that targets JVM, JS and iOS, but to keep it simple, I created a new project using the IntelliJ wizard and I'm seeing the same issue.

As soon as I add your plugin, the entire project "breaks" and it is no longer recognized as Multiplatform project. All the platform modules disappear and I don't see any of the usual Gradle tasks anymore.

Screenshot 2021-07-15 at 14 16 26

This is my build.gradle.kts (I am using Kotlin 1.5.21 and Gradle 6.8:

plugins {
    kotlin("multiplatform") version "1.5.21"
    id("com.chromaticnoise.multiplatform-swiftpackage") version "2.0.3"
}

group = "me.alex"
version = "1.0-SNAPSHOT"

repositories {
    mavenCentral()
}

kotlin {
    jvm {
        compilations.all {
            kotlinOptions.jvmTarget = "1.8"
        }
        testRuns["test"].executionTask.configure {
            useJUnit()
        }
    }
    js(LEGACY) {
        browser {
            commonWebpackConfig {
                cssSupport.enabled = true
            }
        }
    }
    ios {
        binaries {
            framework {
                baseName = "library"
            }
        }
    }
    sourceSets {
        val commonMain by getting
        val commonTest by getting {
            dependencies {
                implementation(kotlin("test"))
            }
        }
        val jvmMain by getting
        val jvmTest by getting
        val jsMain by getting
        val jsTest by getting
        val iosMain by getting
        val iosTest by getting
    }
}

As said, this is a brand new project, so the configuration should be pretty standard.

Is this a known issue? Am I using versions of Kotlin or Gradle that are not compatible with this plugin?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant