https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
p

pardom

06/20/2019, 8:29 PM
How can I change the name of the framework created with the cocoapods plugin. Is it as simple as editing the podspec?
d

Dominaezzz

06/20/2019, 8:31 PM
Copy code
binaries.framework {
       baseName = "my_framework"
}
p

pardom

06/20/2019, 8:32 PM
Thanks!
That didn’t seem to work. I’m using kts scripts, though.
d

Dominaezzz

06/20/2019, 8:58 PM
Oh, I'm not sure then.
p

pardom

06/20/2019, 8:58 PM
Copy code
kotlin {

    iosX64 {
        binaries {
            val frameworks = listOf(
                getFramework("debug"),
                getFramework("release")
            )
            frameworks.forEach { framework ->
                framework.baseName = "LambdaNewsCommon"
                framework.freeCompilerArgs.add("-Xobjc-generics")
                framework.export(deps.Oolong.Core)
            }
        }
    }

    cocoapods {
        summary = "Lambda News"
        homepage = "<https://github.com/pardom/lambda-news>"
    }
}
I’ll ask in #ios