Hi, I have a question about cocoapods. It seems so...
# getting-started
h
Hi, I have a question about cocoapods. It seems sometimes the pod dependency is not actually added. I’m trying to use a pod
Copy code
"Google-Mobile-Ads-SDK"
https://developers.google.com/admob/ios/quick-start . I follow the tutorial to add it like this way
Copy code
pod("Google-Mobile-Ads-SDK") {
    version = "9.12.0"
}
the build looks right. But when I begin to write code to import and use the library, it gives “unresolved reference” error. Looks like there are some linking issues, there should be many other libraries with similar issues, anyone know how to resolve this? thanks!
not kotlin but kotlin colored 2
h
Have you solved this problem yet?
h
unfortunately not
h
Hey! i just found this
Copy code
pod("Google-Mobile-Ads-SDK") {
    moduleName = "GoogleMobileAds"
    extraOpts += listOf("-compiler-option", "-fmodules")
}
Cause the pod name and the module name had same before, but it deprecated So, we need to specify the module here https://cocoapods.org/pods/GoogleMobileAds
👍 1