Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CocoaPods could not find compatible versions for pod "Firebase/Performance": when installed Firebase X in Ionic 5

My project in Ionic 5 and using Capacitor 2.1.2. I have installed Firebase X for capacitor using the following code.

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

When I did ionic cap sync, the android installation was with no errors but I am getting the following error in 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.

The Capacitor IOS version is "@capacitor/ios": "^2.1.2"

like image 575
Tapas Mukherjee Avatar asked May 31 '20 21:05

Tapas Mukherjee


1 Answers

Try running this command in the ios/App folder:

pod install --repo-update
like image 122
Sébastien Avatar answered Oct 04 '22 20:10

Sébastien