Firebase已经更新到4.0,它打破了很多代码,所以我需要将我的安装保持在3.x-ish。我之前从未这样做过,所以对我来说,但是我得到这样的错误:
[!] Unable to satisfy the following requirements:
- `Firebase/RemoteConfig (= 1.3.4)` required by `Podfile`
- `Firebase/RemoteConfig (= 1.3.4)` required by `Podfile`
None of your spec sources contain a spec satisfying the dependency: `Firebase/RemoteConfig (= 1.3.4)`.
You have either:
* out-of-date source repos which you can update with `pod repo update` or with `pod install --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的方式:
pod 'Firebase/Database', '3.1.2'
pod 'Firebase/Auth', '3.1.1'
pod 'Firebase/RemoteConfig', '1.3.4'
pod 'Firebase/Messaging', '1.2.3'
顺便说一句,我试过pod repo update
无济于事。
答案 0 :(得分:0)
这解决了它:
pod 'Firebase/Database', '<4'
pod 'Firebase/Auth', '<4'
pod 'Firebase/RemoteConfig', '<4'
pod 'Firebase/Messaging', '<4'