Thread
#multiplatform
    Bao Le Duc

    Bao Le Duc

    2 months ago
    I’m using iOS cocoapods dependencies in my shared library.
    pod("AFNetworking") {
                version = "~> 4.0.1"
            }
            pod("AgoraRtcEngine_iOS")
    both libraries are available from https://cocoapods.org/ and working with another (standalone) iOS project. However,
    cinteropAgoraRtcEngine_iOSIosArm64
    was failed and I got
    Exception in thread "main" java.lang.Error: /var/folders/3j/8k6z66l50dq_d1sjfxl8cphh0000gn/T/10429521223665112771.m:1:9: fatal error: module 'AgoraRtcEngine_iOS' not found
    If I removed
    pod("AgoraRtcEngine_iOS")
    , it worked fine and I can
    import cocoapods.AFNetworking.*
    in iOS source-set Kotlin code. Any help are welcome!
    r

    ribesg

    2 months ago
    Are you using Kotlin 1.7.0?
    Bao Le Duc

    Bao Le Duc

    2 months ago
    yes, Kotlin 1.7.0
    r

    ribesg

    2 months ago
    Things changed on the cocoapods side with 1.7, try with 1.6.21
    My iOS app currently doesn’t compile with Kotlin 1.7.0 because it fails to build a cocoapods dependency…
    Only difference being 1.6.21 -> 1.7.0, so maybe try it
    Bao Le Duc

    Bao Le Duc

    2 months ago
    trying…
    no luck, I got the same errors
    r

    ribesg

    2 months ago
    Well then unless there’s some caching, that’s not your issue
    Bao Le Duc

    Bao Le Duc

    2 months ago
    I did
    gradlew clean
    before building, so shouldn’t be a cache issue
    Thank @ribesg
    k

    Kevin Henriksson

    2 months ago
    having the same issue but with x64
    j

    Jeff Lockhart

    2 months ago
    Is the module name different than the pod name? I found this can sometimes be the case. When importing the module in Swift, what's the module name you use?
    Try changing to
    pod("AgoraRtcEngine_iOS", moduleName="TheModuleName")
    , where "TheModuleName" is something different than the pod name.