我想通过Cocoa豆荚为我的Objective-C iOS应用程序安装Firebase。我Podfile如下:FireBase可可豆荚安装不工作
target 'RandomName' do
pod 'Firebase/Core'
pod 'Firebase/AdMob'
end
当我运行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 update` does not happen on `pod install` by default.
可可豆荚最新版本的安装,我已经尝试运行荚回购更新。有一个Podfile以下工作正常,但是当我尝试在我的AppDelegate.m文件中@import Firebase;
时,Xcode无法找到该模块。
target 'RandomName' do
pod 'Firebase'
end
但是,下面的组合不安装:
target 'RandomName' do
pod 'Firebase'
pod 'Firebase/AdMob'
end
任何帮助,将不胜感激!
在podfile中使用pod'Firebase'并将Firebase导入为@import Firebase后;你建立这个项目吗?如果没有,然后尝试构建它。因为Xcode抱怨没有找到模块,但构建错误消失了。当我整合其他框架时,我面临类似的问题并花费了数小时的时间。但建成后开始工作。所以也许同样的情况可能与你同在。 –