CocoaPods 找不到 pod "Firebase/Performance" 的兼容版本:在 Ionic 5 中安装 Firebase X 时
CocoaPods could not find compatible versions for pod "Firebase/Performance": when installed Firebase X in Ionic 5
我在 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.
电容器 IOS 版本是 "@capacitor/ios": "^2.1.2"
在 ios/App 文件夹中尝试 运行 这个命令:
pod install --repo-update
我在 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.
电容器 IOS 版本是 "@capacitor/ios": "^2.1.2"
在 ios/App 文件夹中尝试 运行 这个命令:
pod install --repo-update