Has anyone been able to call a method from a Cocoa...
# multiplatform
v
Has anyone been able to call a method from a Cocoapods dependency in Kotlin? I’m refering to https://kotlinlang.org/docs/reference/native/cocoapods.html#interoperability
import cocoapods.AFNetworking
fails when compiling via Xcode with:
Packages cannot be imported
import cocoapods.*
and referencing
AFNetworking
does not seem to work either:
Unresolved reference: AFNetworking
a
v
Getting:
Copy code
- Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
- Plugin Repositories (could not resolve plugin artifact 'org.jetbrains.kotlin.multiplatform:org.jetbrains.kotlin.multiplatform.gradle.plugin:1.3.61')
  Searched in the following repositories:
    BintrayJCenter
    maven(<https://dl.bintray.com/kotlin/kotlin-dev>)
    maven2(<https://dl.bintray.com/kotlin/kotlin-eap>)
when executing the
build.sh
I’ve got it running in my project though, seems like a clean build on XCode did the trick and I can see the classes being imported; stumbled an issue with the library that I actually want to use though - https://github.com/JetBrains/kotlin-native/issues/3828
👀 1