我正在尝试安装Firebase /数据库,例如Firebase文档https://firebase.google.com/docs/ios/setup#available_pods,但是当我尝试时遇到问题.
[!] Unable to satisfy the following requirements:
Run Code Online (Sandbox Code Playgroud)
Firebase/Database 需要的 Podfile
Firebase/Database找到了满足依赖性的规范,但它们需要更高的最低部署目标.
需要更高的最低部署目标,我该怎么做?
谢谢
我正在尝试通过Cocoa Pod为我的Objective-C iOS应用程序安装Firebase.我的Podfile如下:
target 'RandomName' do
pod 'Firebase/Core'
pod 'Firebase/AdMob'
end
Run Code Online (Sandbox Code Playgroud)
当我运行时pod install,我收到以下错误:
[!] Unable to satisfy the following requirements:
- `Firebase/Core` required by `Podfile`
None of your spec sources contain a spec satisfying the dependency: `Firebase/Core`.
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 …Run Code Online (Sandbox Code Playgroud) 由于我阅读了许多Firebase AdMob相关问题及其解决方案,我对我的应用程序和CocoaPod更新做了同样的事情,但仍然面临库问题并收到以下错误:
[GADMobileAds configureWithApplicationID:@"ca-app-pub-3940256099942544~1458002511"];
Run Code Online (Sandbox Code Playgroud)
错误:所选方法 configureWithApplicationID 没有未知类
问题参考: 无法在iOS项目中更新Google AdMob
尽管如此,它仍然低于 POD 的 SDK 版本
Google-移动广告-SDK (7.8.1)
虽然我在最新版本上手动强制更新,如下所示:
pod 'Google-Mobile-Ads-SDK', '~> 7.16'
Run Code Online (Sandbox Code Playgroud)
还
pod 'Google-Mobile-Ads-SDK', '~> 7.9.1'
Run Code Online (Sandbox Code Playgroud)
参考:基于 CocoaPod 网站
target 'MyApp' do pod 'Google-Mobile-Ads-SDK', '~> 7.16' end
它会给我一个错误,例如:
Run Code Online (Sandbox Code Playgroud)[!] 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 …