Hey guys, I’ve just started with KMM and I have a ...
# multiplatform
g
Hey guys, I’ve just started with KMM and I have a minor, but annoying issue with CocoaPods integration. Essentially, I’ve added this to my shared
build.gradle.kts
file:
Copy code
version = "1.0-SNAPSHOT"

kotlin {

    android()
    ios()

    cocoapods {
        frameworkName = "shared"

        ios.deploymentTarget = "13.0"

        summary = "CocoaPods Test Library"
        homepage = "<https://github.com/JetBrains/kotlin>"

        pod("AFNetworking") {
            version = "~> 4.0.1"
        }

        pod("PromisesSwift") {
            moduleName = "Promises"
        }
    }
...
And the project builds, the pods are available in both Kotlin code and Swift (I’ve included a path to podspec file) but the module (AFNetworking in this case) isn’t seen, yet it works.
k
Hey @Goku! It's a known issue, the root cause and the workaround are described here
👍 1
g
Thanks for the info! 👍
k