CocoaPods could not find compatible versions for pod

See original GitHub issue

Bug Report

Capacitor Version

πŸ’Š Capacitor Doctor  πŸ’Š 

Latest Dependencies:

  @capacitor/cli: 2.2.0

  @capacitor/core: 2.2.0

  @capacitor/android: 2.2.0

  @capacitor/electron: 2.2.0

  @capacitor/ios: 2.2.0

Installed Dependencies:

  @capacitor/electron not installed

  @capacitor/cli 2.2.0

  @capacitor/ios 2.2.0

  @capacitor/core 2.2.0

  @capacitor/android 2.2.0

Platform(s)

iOS

Current Behavior

I have a complete working project of Cordova (Web/Android) with the last Ionic version, I need to make an iOS version too, i’m tyring to use Capacitor because of the new problem with WebView. When I use npx cap add iOS, in the pods part the bug happen, the npx create a project without any plugins of CordovaPluginsStatic.podspec. Even when I tried to update the pods (pod install --update-repo) the problem still persist.

The error log:


Analyzing dependencies
[!] CocoaPods could not find compatible versions for pod "FBSDKCoreKit":
  In Podfile:
    CordovaPluginsStatic (from `../capacitor-cordova-ios-plugins`) was resolved to 2.2.0, which depends on
      FBSDKCoreKit (= 5.15.0)

    CordovaPluginsStatic (from `../capacitor-cordova-ios-plugins`) was resolved to 2.2.0, which depends on
      FBSDKLoginKit (= 5.15.0) was resolved to 5.15.0, which depends on
        FBSDKLoginKit/Login (= 5.15.0) was resolved to 5.15.0, which depends on
          FBSDKCoreKit (~> 5.0)

CocoaPods could not find compatible versions for pod "FirebaseABTesting":
  In Podfile:
    CordovaPluginsStatic (from `../capacitor-cordova-ios-plugins`) was resolved to 2.2.0, which depends on
      Firebase/InAppMessaging (= 6.23.0) was resolved to 6.23.0, which depends on
        FirebaseInAppMessaging (~> 0.19.2) was resolved to 0.19.3, which depends on
          FirebaseABTesting (~> 3.2)

    CordovaPluginsStatic (from `../capacitor-cordova-ios-plugins`) was resolved to 2.2.0, which depends on
      Firebase/RemoteConfig (= 6.23.0) was resolved to 6.23.0, which depends on
        FirebaseRemoteConfig (~> 4.4.9) was resolved to 4.4.11, which depends on
          FirebaseABTesting (~> 3.1)

CocoaPods could not find compatible versions for pod "FirebaseAnalytics":
  In Podfile:
    CordovaPluginsStatic (from `../capacitor-cordova-ios-plugins`) was resolved to 2.2.0, which depends on
      Firebase/Core (= 6.23.0) was resolved to 6.23.0, which depends on
        FirebaseAnalytics (= 6.4.2)

    CordovaPluginsStatic (from `../capacitor-cordova-ios-plugins`) was resolved to 2.2.0, which depends on
      GoogleTagManager (= 7.1.2) was resolved to 7.1.2, which depends on
        FirebaseAnalytics (~> 6.0)

CocoaPods could not find compatible versions for pod "FirebaseCore":
  In Podfile:
    CordovaPluginsStatic (from `../capacitor-cordova-ios-plugins`) was resolved to 2.2.0, which depends on
      Firebase/Core (= 6.23.0) was resolved to 6.23.0, which depends on
        Firebase/CoreOnly (= 6.23.0) was resolved to 6.23.0, which depends on
          FirebaseCore (= 6.6.7)

    CordovaPluginsStatic (from `../capacitor-cordova-ios-plugins`) was resolved to 2.2.0, which depends on
      Firebase/Core (= 6.23.0) was resolved to 6.23.0, which depends on
        FirebaseAnalytics (= 6.4.2) was resolved to 6.4.2, which depends on
          FirebaseCore (~> 6.6)

    CordovaPluginsStatic (from `../capacitor-cordova-ios-plugins`) was resolved to 2.2.0, which depends on
      Firebase/Core (= 6.23.0) was resolved to 6.23.0, which depends on
        FirebaseAnalytics (= 6.4.2) was resolved to 6.4.2, which depends on
          FirebaseInstallations (~> 1.2) was resolved to 1.4.0, which depends on
            FirebaseCore (~> 6.8)

    CordovaPluginsStatic (from `../capacitor-cordova-ios-plugins`) was resolved to 2.2.0, which depends on
      Firebase/Firestore (= 6.23.0) was resolved to 6.23.0, which depends on
        FirebaseFirestore (~> 1.12.1) was resolved to 1.12.1, which depends on
          FirebaseCore (~> 6.2)

    CordovaPluginsStatic (from `../capacitor-cordova-ios-plugins`) was resolved to 2.2.0, which depends on
      Firebase/InAppMessaging (= 6.23.0) was resolved to 6.23.0, which depends on
        FirebaseInAppMessaging (~> 0.19.2) was resolved to 0.19.3, which depends on
          FirebaseABTesting (~> 3.2) was resolved to 3.2.0, which depends on
            FirebaseCore (~> 6.1)

CocoaPods could not find compatible versions for pod "FirebaseRemoteConfig":
  In Podfile:
    CordovaPluginsStatic (from `../capacitor-cordova-ios-plugins`) was resolved to 2.2.0, which depends on
      Firebase/Performance (= 6.23.0) was resolved to 6.23.0, which depends on
        FirebasePerformance (~> 3.1.11) was resolved to 3.1.11, which depends on
          FirebaseRemoteConfig (~> 4.4)

    CordovaPluginsStatic (from `../capacitor-cordova-ios-plugins`) was resolved to 2.2.0, which depends on
      Firebase/RemoteConfig (= 6.23.0) was resolved to 6.23.0, which depends on
        FirebaseRemoteConfig (~> 4.4.9)

CocoaPods could not find compatible versions for pod "GoogleUtilities/AppDelegateSwizzler":
  In Podfile:
    CordovaPluginsStatic (from `../capacitor-cordova-ios-plugins`) was resolved to 2.2.0, which depends on
      Firebase/Core (= 6.23.0) was resolved to 6.23.0, which depends on
        FirebaseAnalytics (= 6.4.2) was resolved to 6.4.2, which depends on
          GoogleUtilities/AppDelegateSwizzler (~> 6.0)

    CordovaPluginsStatic (from `../capacitor-cordova-ios-plugins`) was resolved to 2.2.0, which depends on
      Firebase/Messaging (= 6.23.0) was resolved to 6.23.0, which depends on
        FirebaseMessaging (~> 4.3.1) was resolved to 4.3.1, which depends on
          GoogleUtilities/AppDelegateSwizzler (~> 6.5)

    CordovaPluginsStatic (from `../capacitor-cordova-ios-plugins`) was resolved to 2.2.0, which depends on
      GoogleUtilities (~> 6.5.1) was resolved to 6.5.1, which depends on
        GoogleUtilities/AppDelegateSwizzler (= 6.5.1)

CocoaPods could not find compatible versions for pod "GoogleUtilities/Environment":
  In Podfile:
    CordovaPluginsStatic (from `../capacitor-cordova-ios-plugins`) was resolved to 2.2.0, which depends on
      Firebase/Core (= 6.23.0) was resolved to 6.23.0, which depends on
        Firebase/CoreOnly (= 6.23.0) was resolved to 6.23.0, which depends on
          FirebaseCore (= 6.6.7) was resolved to 6.6.7, which depends on
            GoogleUtilities/Environment (~> 6.5)

    CordovaPluginsStatic (from `../capacitor-cordova-ios-plugins`) was resolved to 2.2.0, which depends on
      Firebase/Performance (= 6.23.0) was resolved to 6.23.0, which depends on
        FirebasePerformance (~> 3.1.11) was resolved to 3.1.11, which depends on
          GoogleUtilities/Environment (~> 6.2)

    CordovaPluginsStatic (from `../capacitor-cordova-ios-plugins`) was resolved to 2.2.0, which depends on
      GoogleUtilities (~> 6.5.1) was resolved to 6.5.1, which depends on
        GoogleUtilities/Environment (= 6.5.1)

CocoaPods could not find compatible versions for pod "GoogleUtilities/Logger":
  In Podfile:
    CordovaPluginsStatic (from `../capacitor-cordova-ios-plugins`) was resolved to 2.2.0, which depends on
      Firebase/Core (= 6.23.0) was resolved to 6.23.0, which depends on
        Firebase/CoreOnly (= 6.23.0) was resolved to 6.23.0, which depends on
          FirebaseCore (= 6.6.7) was resolved to 6.6.7, which depends on
            GoogleUtilities/Logger (~> 6.5)

    CordovaPluginsStatic (from `../capacitor-cordova-ios-plugins`) was resolved to 2.2.0, which depends on
      GoogleUtilities (~> 6.5.1) was resolved to 6.5.1, which depends on
        GoogleUtilities/Logger (= 6.5.1)

CocoaPods could not find compatible versions for pod "GoogleUtilities/MethodSwizzler":
  In Podfile:
    CordovaPluginsStatic (from `../capacitor-cordova-ios-plugins`) was resolved to 2.2.0, which depends on
      Firebase/Core (= 6.23.0) was resolved to 6.23.0, which depends on
        FirebaseAnalytics (= 6.4.2) was resolved to 6.4.2, which depends on
          GoogleUtilities/MethodSwizzler (~> 6.0)

    CordovaPluginsStatic (from `../capacitor-cordova-ios-plugins`) was resolved to 2.2.0, which depends on
      Firebase/Performance (= 6.23.0) was resolved to 6.23.0, which depends on
        FirebasePerformance (~> 3.1.11) was resolved to 3.1.11, which depends on
          GoogleUtilities/MethodSwizzler (~> 6.2)

    CordovaPluginsStatic (from `../capacitor-cordova-ios-plugins`) was resolved to 2.2.0, which depends on
      GoogleUtilities (~> 6.5.1) was resolved to 6.5.1, which depends on
        GoogleUtilities/MethodSwizzler (= 6.5.1)

CocoaPods could not find compatible versions for pod "GoogleUtilities/Network":
  In Podfile:
    CordovaPluginsStatic (from `../capacitor-cordova-ios-plugins`) was resolved to 2.2.0, which depends on
      Firebase/Core (= 6.23.0) was resolved to 6.23.0, which depends on
        FirebaseAnalytics (= 6.4.2) was resolved to 6.4.2, which depends on
          GoogleUtilities/Network (~> 6.0)

    CordovaPluginsStatic (from `../capacitor-cordova-ios-plugins`) was resolved to 2.2.0, which depends on
      GoogleUtilities (~> 6.5.1) was resolved to 6.5.1, which depends on
        GoogleUtilities/Network (= 6.5.1)

CocoaPods could not find compatible versions for pod "GoogleUtilities/Reachability":
  In Podfile:
    CordovaPluginsStatic (from `../capacitor-cordova-ios-plugins`) was resolved to 2.2.0, which depends on
      Firebase/Messaging (= 6.23.0) was resolved to 6.23.0, which depends on
        FirebaseMessaging (~> 4.3.1) was resolved to 4.3.1, which depends on
          GoogleUtilities/Reachability (~> 6.5)

    CordovaPluginsStatic (from `../capacitor-cordova-ios-plugins`) was resolved to 2.2.0, which depends on
      GoogleUtilities (~> 6.5.1) was resolved to 6.5.1, which depends on
        GoogleUtilities/Reachability (= 6.5.1)

CocoaPods could not find compatible versions for pod "GoogleUtilities/UserDefaults":
  In Podfile:
    CordovaPluginsStatic (from `../capacitor-cordova-ios-plugins`) was resolved to 2.2.0, which depends on
      Firebase/Core (= 6.23.0) was resolved to 6.23.0, which depends on
        FirebaseAnalytics (= 6.4.2) was resolved to 6.4.2, which depends on
          FirebaseInstallations (~> 1.2) was resolved to 1.3.0, which depends on
            GoogleUtilities/UserDefaults (~> 6.6)

    CordovaPluginsStatic (from `../capacitor-cordova-ios-plugins`) was resolved to 2.2.0, which depends on
      Firebase/Messaging (= 6.23.0) was resolved to 6.23.0, which depends on
        FirebaseMessaging (~> 4.3.1) was resolved to 4.3.1, which depends on
          GoogleUtilities/UserDefaults (~> 6.5)

    CordovaPluginsStatic (from `../capacitor-cordova-ios-plugins`) was resolved to 2.2.0, which depends on
      GoogleUtilities (~> 6.5.1) was resolved to 6.5.1, which depends on
        GoogleUtilities/UserDefaults (= 6.5.1)

CocoaPods could not find compatible versions for pod "nanopb":
  In Podfile:
    CordovaPluginsStatic (from `../capacitor-cordova-ios-plugins`) was resolved to 2.2.0, which depends on
      Firebase/Core (= 6.23.0) was resolved to 6.23.0, which depends on
        FirebaseAnalytics (= 6.4.2) was resolved to 6.4.2, which depends on
          nanopb (= 0.3.9011)

    CordovaPluginsStatic (from `../capacitor-cordova-ios-plugins`) was resolved to 2.2.0, which depends on
      Firebase/Firestore (= 6.23.0) was resolved to 6.23.0, which depends on
        FirebaseFirestore (~> 1.12.1) was resolved to 1.12.1, which depends on
          gRPC-C++ (= 0.0.9) was resolved to 0.0.9, which depends on
            gRPC-C++/Implementation (= 0.0.9) was resolved to 0.0.9, which depends on
              nanopb (~> 0.3)

    CordovaPluginsStatic (from `../capacitor-cordova-ios-plugins`) was resolved to 2.2.0, which depends on
      Firebase/Firestore (= 6.23.0) was resolved to 6.23.0, which depends on
        FirebaseFirestore (~> 1.12.1) was resolved to 1.12.1, which depends on
          nanopb (~> 0.3.901)

    CordovaPluginsStatic (from `../capacitor-cordova-ios-plugins`) was resolved to 2.2.0, which depends on
      Firebase/InAppMessaging (= 6.23.0) was resolved to 6.23.0, which depends on
        FirebaseInAppMessaging (~> 0.19.2) was resolved to 0.19.3, which depends on
          GoogleDataTransportCCTSupport (~> 3.0) was resolved to 3.2.0, which depends on
            nanopb (~> 1.30905.0)

Expected Behavior

Create the project with the plugins to build in Xcode.

Code Reproduction

ionic build

npx cap copy

npx cap add ios

Other Technical Details

npm --version output: 6.13.4

node --version output: 12.13.1

pod --version output (iOS issues only): 1.8.4

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

11reactions
fkirccommented, Mar 17, 2021

Sorry it was my mistake, I just forgot to change the first line of my Podfile as follows:

platform :ios, '13.0'

5reactions
jcesarmobilecommented, Mar 17, 2021

Capacitor 3 requires iOS 12 as deployment target, please, read the upgrade guide, it’s mentioned there. This is a totally different issue from the original issue, don’t comment on old issues, if you have problems use the discussions or ionic forum.

Read more comments on GitHub >

github_iconTop Results From Across the Web

could not find compatible versions for pod - Stack Overflow
I am having a problem after merging my local repo to the dev repo. After merging when I build the project I get...
Read more >
pod install ... CocoaPods could not find compatible versions ...
Usually this error happens when you have an earlier version of the Stripe pod already installed, and then add (or update) a JS...
Read more >
[!] CocoaPods could not find compatible versions for pod ...
Solution Β· Go to ios/Pods/Local Podspevs directory in your project Β· Check every json file to find highest required ios version. Mine was...
Read more >
I am getting the "CocoaPods could not find compatible ...
I am getting the "CocoaPods could not find compatible versions" error. Please make sure that your app meets Shake SDK minimum requirements. Mark...
Read more >
Easily Fix Hermes Engine Library Missing Error | Travis Wimer
How to fix: CocoaPods could not find compatible versions for pod "hermes-engine" Β· 1. Install the correct version of Ruby Β· 2. Upgrade...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found