Is there a trick to getting the FatFrameworkTask w...
# kotlin-native
j
Is there a trick to getting the FatFrameworkTask working? Running AS with Kotlin 1.3.31.
build.gradle
is in groovy
Copy code
unable to resolve class org.jetbrains.kotlin.gradle.tasks.FatFrameworkTask
   @ line 2, column 1.
     import org.jetbrains.kotlin.gradle.tasks.FatFrameworkTask
i
It looks strange. Could you please share the full buildscript?
j
I'm separated into multiple build scripts, anything specific you want to see?
Copy code
apply plugin: 'org.jetbrains.kotlin.native.cocoapods'
import org.jetbrains.kotlin.gradle.tasks.FatFrameworkTask

version = VERSION_NAME

kotlin {

    iosArm32("ios32")
    iosArm64("ios64")

    configure([ios32, ios64]) {
        binaries.framework {
            baseName = "my_framework"
        }
    }

    cocoapods {
        // Configure fields required by CocoaPods.
        summary = "TBD"
        homepage = "<https://github.com/foursquare/>"
    }
}
i
I want to see plugins applied and the dependencies added to the buildscript classpath. But the script may contain some other clues. Is it possible to share the whole project?
j
unfortunately not yet, its still closed source
plugins:
Copy code
apply plugin: 'kotlin-multiplatform'
apply plugin: 'kotlinx-serialization'
apply plugin: 'maven-publish'
Copy code
dependencies {
        classpath 'com.android.tools.build:gradle:3.4.0'
        classpath deps.kotlin.plugin
        classpath deps.kotlin.serialization.plugin
        classpath deps.kotlin.frontend.plugin
        classpath deps.kotlin.dokka
all kotlin plugins are at 1.3.31, frontend at 0.0.45, dokka at 0.9.18
i
Hi! I've tried to reproduce the issue.
FatFrameworkTask
is red in AS 3.4.1 but the project syncs correctly, and can be built from command line. Is your issue reproducible for command line builds?
j
Yes, in AS 3.4.1 it is red and the error I posted is via command line
i
I don't observe this issue via command line. Could you reproduce it using a simple project and send me this reproducer?
j
Sure, let me see if I can get a simple one. Would you prefer a direct message on slack or should i file an issue on youtrack
i
I believe it's just a some kind of misconfiguration, so let's use direct messages for now.