CocoaPods找不到与"Firebase/CoreOnly"兼容的版本:在Podfile中。

3

我正在使用react-native构建应用程序,当我执行pod install时,出现以下错误。

以下是完整的错误信息。

[!] CocoaPods could not find compatible versions for pod "Firebase/CoreOnly":
  In Podfile:
    RNFBApp (from `../node_modules/@react-native-firebase/app`) was resolved to 12.4.0, which depends on
      Firebase/CoreOnly (= 8.4.0)

None of your spec sources contain a spec satisfying the dependency: `Firebase/CoreOnly (= 8.4.0)`.

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.

看起来 firebase/CoreOnly 在 pod 文件和 nodemodule @react-native-firebase/app 中版本不匹配。因此,请尝试更新您的 pod 文件,使用以下命令 pod install --repo-update - Kathirpandian K
@KathirpandianK,我试过了,但我得到了这个错误:“- pod install has bug”。 - SpaceX
1
我也遇到了同样的问题。你解决了吗?我正在使用L。 - Shawn
1
我也遇到了同样的问题。你解决了吗?我正在使用...(缺少后续文本) - Shawn
1个回答

0

我曾经遇到过同样的问题,我只需在我的ios文件夹中运行pod install --repo-update,问题就解决了。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接