Huanzhi Zhang
07/26/2023, 11:50 PM"Google-Mobile-Ads-SDK"
https://developers.google.com/admob/ios/quick-start . I follow the tutorial to add it like this way
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!Hai Tran
07/22/2024, 3:41 PMHuanzhi Zhang
07/22/2024, 6:10 PMHai Tran
08/11/2024, 6:42 AMpod("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