CocoaPods could not find compatible versions for pod CordovaPlugins

While building iOS project in Ionic if you are getting the following issue:

✖ update ios - failed!
[error] Analyzing dependencies
        [!] CocoaPods could not find compatible versions for pod "CordovaPlugins":
        In Podfile:
        CordovaPlugins (from `../capacitor-cordova-ios-plugins`)
        
        Specs satisfying the `CordovaPlugins (from `../capacitor-cordova-ios-plugins`)` dependency were found, but they
        required a higher minimum deployment target.

The solution is to go to ios/App/Podfile file in yoru Ionic project and update the iOS minimum supported version.

platform :ios, '14.0'
use_frameworks!

Above, the minimum iOS version has been updated to platform :ios, ‘14.0’.

After building the Ionic solution again for iOS project the error will be fixed and the iOS project will be compiled:

ionic build --prod && npx cap copy ios && npx cap sync ios