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

Julius

03/23/2021, 5:17 PM
Anyone else having problems using cocoapods in KMM?
Copy code
> Task :SharedCode:cinteropAFNetworkingIosX64 FAILED
Exception in thread "main" java.lang.Error: /var/folders/j7/fqrxk_js0sn4r2blxl4kq0fm0000gn/T/14707145049679086784.m:1:9: fatal error: module 'AFNetworking' not found
a

Artyom Degtyarev [JB]

03/24/2021, 7:50 AM
Hello, @Julius! Haven’t got this problem myself, but maybe I’ll be able to localize the problem. Currently I’m looking at the MokoResourcesTest project you mentioned earlier, is this a right place to start?
j

Julius

03/24/2021, 9:00 AM
yes thats right https://github.com/frodob/MokoResourcesTest much appreciated
a

Artyom Degtyarev [JB]

03/24/2021, 9:51 AM
In my case, adding
podfile = project.file("../iosApp/Podfile")
to the
SharedCode/build.gradle.kts
helped. After that, I re-imported project to Android Studio and everything began to work. See this doc for the details.
j

Julius

03/24/2021, 10:15 AM
@Artyom Degtyarev [JB] updated and added podfile path, but I still can’t build die ios app 🙁
@Artyom Degtyarev [JB] nevermind, I just sow that I forgot to uncomment use_frameworks! But thanks for looking into it!
🎉 1
5 Views