https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
c

coletz

10/25/2018, 10:35 AM
Is it normal that I can't use cocoapods on iOS in a mpp? I tried some pods just for testing purpose but I always get
ld: framework not found _podname_
(I'm using the xcworkspace)
c

coletz

10/25/2018, 4:45 PM
isn't this about compiling a gradle module + a cocoa pod? I need to import pods in my project, not export my project as a pod (or maybe I'm not understanding well).
v

vincent.desmet

10/26/2018, 7:03 AM
Yeah, the Github project is more about publishing the library to Cocoapods. For using cocoapods in the iOS specific code you’ll need to generate the Kotlin-ObjC/Swift bindings manually. Check out the documentation from Jetbrains: https://github.com/JetBrains/kotlin-native/blob/master/INTEROP.md Our Github project(the one linked above) contains a very basic ‘string_interop’ sample in
library/ios/build.gradle
and
library/ios/src/main/c_interop
. It doesn’t use Cocoapods as a source, but it might help you to get started with generating the bindings.
c

coletz

10/26/2018, 8:34 AM
wait, isn't this only to use objc classes on the K/N code? I just need to use pods on swift, like the normal usage. No need to use them on the kotlin code
2 Views