Has anyone had any success with the `native.cocoap...
# multiplatform
c
Has anyone had any success with the
native.cocoapods
plugin recently? I am trying to write a KMM library whose iOS code depends on a cocoapod, which I import using
Copy code
cocoapods {
  pod("AFNetworking")
}
However
cinterop
gives me
Copy code
fatal error: module 'AFNetworking' not found
as in this issue. But I don’t think it’s the same problem. Anyone had similar?
v
Hi, do you have cocoapods and cocoapods-generate installed on your machine? If yes please share your build.gradle file if possible.
c
Huh. I did not have
cocoapods-generate
installed. That seems to have fixed it 😱
Thanks Vlacheslav
Next question on that subject. On my pure iOS projects, I specify the version of cocoapods used in a Gemfile, and execute using
bundle exec pod install
etc. Is there any way to do that with KMM and ensure each project uses its specific version?
v
Hm, I’m not sure such scenario has been ever considered. If Bundler support is required feel free to file a ticket on kotlin youtrack