使用 CocoaPods 保留旧版本的 Firebase

Keep old version of Firebase with CocoaPods

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.

这是我试图在我的播客文件中冻结的方式:

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 没用。

已修复:

pod 'Firebase/Database', '<4'
pod 'Firebase/Auth', '<4'
pod 'Firebase/RemoteConfig', '<4'
pod 'Firebase/Messaging', '<4'