Kurt Renzo Acosta

    Kurt Renzo Acosta

    2 years ago
    Hello. How do you configure the framework produced by cocoapods? I'm trying to do a:
    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.
    Kris Wong

    Kris Wong

    2 years ago
    baseName = "$ios_framework_name"
    drop that in your framework block