ios - CocoaPods 找不到 pod "Firebase/Performance": when installed Firebase X in Ionic 5 的兼容版本

标签 ios firebase cordova ionic-framework capacitor

我在 Ionic 5 中的项目并使用 Capacitor 2.1.2。我已安装 Firebase X对于使用以下代码的电容器。

npm install cordova-plugin-firebasex
npm install @ionic-native/firebase-x

当我做 ionic cap sync , android 安装没有错误,但我在 IOS 中收到以下错误。
✖ Updating iOS native dependencies with "pod install" (may take several minutes): 
✖ update ios: 
[error] Error running update: Analyzing dependencies
[!] CocoaPods could not find compatible versions for pod "Firebase/Performance":
  In Podfile:
    CordovaPluginsStatic (from `../capacitor-cordova-ios-plugins`) was resolved to 2.1.2, which depends on
      Firebase/Performance (= 6.23.0)

None of your spec sources contain a spec satisfying the dependency: `Firebase/Performance (= 6.23.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.

Capacitor IOS版本为"@capacitor/ios": "^2.1.2"

最佳答案

尝试在 ios/App 文件夹中运行此命令:

pod install --repo-update

关于ios - CocoaPods 找不到 pod "Firebase/Performance": when installed Firebase X in Ionic 5 的兼容版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62122742/

相关文章:

ios - UIPageViewController 上未选择 UITableView didSelectRowAtIndexPath

ios - 禁用 UIWebView 中的外部 url 链接

java - Spinner Widget 将不会显示所选文本

Firebase 错误 : Auth error from APNS or Web Push Service

ios - Cordova iPhone X状态栏添加白色空栏

ios - iOS 中跨不同 Size 类别的 Segment Bar

ios - 为什么我的 initWithNibName 方法返回一个 nil View ?

firebase - 如何在世博会中使用 firebase 登录

android - JQuery 手机 : does data-transition ="slideback" or alike exist?

facebook - 在移动设备上使用 Facebook 和 Django 进行身份验证