https://kotlinlang.org logo
k

Kurt Renzo Acosta

12/23/2019, 10:40 AM
Hello. How do you configure the framework produced by cocoapods? I'm trying to do a:
Copy code
iOSTarget("ios") {
    compilations {
        val main by getting {
            kotlinOptions.freeCompilerArgs = listOf("-Xobjc-generics")
        }
    }

    binaries {
        framework {
            export(project(":shared-module-1"))
            export(project(":shared-module-2"))
        }
    }
}
But I'm getting a
Cannot create binary debugFramework: binary with such a name already exists
If I name it
framework("MyFramework")
, it works but it doesn't build with cocoapods.
k

Kris Wong

12/23/2019, 2:40 PM
Copy code
baseName = "$ios_framework_name"
drop that in your framework block