【发布时间】:2017-01-25 06:48:50
【问题描述】:
当我阅读了许多与 Firebase AdMob 相关的问题及其解决方案时,我对我的应用程序和CocoaPod 更新做了同样的事情,但仍然面临库问题并收到以下错误:
[GADMobileAds configureWithApplicationID:@"ca-app-pub-3940256099942544~1458002511"];
错误:所选方法没有未知类 configureWithApplicationID
问题参考:Can't Update Google AdMob in iOS Project
不过,它仍然低于 POD 的 SDK 版本
Google-Mobile-Ads-SDK (7.8.1)
虽然我手动强制更新最新版本,如下所示:
pod 'Google-Mobile-Ads-SDK', '~> 7.16'
还有
pod 'Google-Mobile-Ads-SDK', '~> 7.9.1'
参考:基于 CocoaPod 网站
target 'MyApp' do pod 'Google-Mobile-Ads-SDK', '~> 7.16' end
它会给我这样的错误:
[!] Unable to satisfy the following requirements: - `Google-Mobile-Ads-SDK (= 7.16)` required by `Podfile` None of your spec sources contain a spec satisfying the dependency: `Google-Mobile-Ads-SDK (= 7.16)`. You have either: * out-of-date source repos which you can update with `pod repo update`. * mistyped the name or version. * not added the source repo that hosts the Podspec to your Podfile. Note: as of CocoaPods 1.0, `pod repo update` does not happen on `pod install` by default.
我也做了pod repo update
但仍然没有最新库的结果。
编辑:
虽然我手动下载它仍然给我旧库没有实现上述方法如何令人作呕的 SDK 更新谷歌需要定期更新这个库。
请帮帮我,就像我从昨晚开始就卡在这里一样。
提前致谢。
【问题讨论】:
标签: ios objective-c firebase admob