j

    jun chen

    2 weeks ago
    anyone know how to add pod compile option in KMM I want to add below pod_target_xcconfig in my build.gradle.kts file cocoapods block,but I don't know how to add s.pod_target_xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => 'GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS=1',
    Konstantin Tskhovrebov

    Konstantin Tskhovrebov

    2 weeks ago
    Documentation: https://kotlinlang.org/docs/native-cocoapods-dsl-reference.html#cocoapods-block
    cocoapods {
            extraSpecAttributes["pod_target_xcconfig"] = """{
                'KOTLIN_PROJECT_PATH' => ':shared',
                'PRODUCT_MODULE_NAME' => 'shared',
                'GCC_PREPROCESSOR_DEFINITIONS' => 'GPB_USE_PROTOBUF_FRAMEWORK=1'
            }""".trimIndent()
        }
    🧐
    j

    jun chen

    2 weeks ago
    thanks