CocoaPods 找不到 pod“Firebase/Performance”的兼容版本:在 Ionic 5 中安装 Firebase X 时

Tap*_*jee 5 ios cordova firebase ionic-framework capacitor

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

npm install cordova-plugin-firebasex
npm install @ionic-native/firebase-x
Run Code Online (Sandbox Code Playgroud)

当我这样做时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.
Run Code Online (Sandbox Code Playgroud)

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

Séb*_*ien 10

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

pod install --repo-update
Run Code Online (Sandbox Code Playgroud)