我在 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/