'CocoaPods update , due to capacitor error. Need advice
I am working on a Ionic Capacitor project. Previously i had capacitor version 2 installed, but a new update for @capacitor-community/bluetooth-le, required Capacitor 3.
But i have now updated to Capacitor 3, but when i do a sync , i am getting the following error message
update ios - failed!
[error] Analyzing dependencies
[!] CocoaPods could not find compatible versions for pod "Capacitor":
In Podfile:
Capacitor (from `../../node_modules/@capacitor/ios`)
Specs satisfying the `Capacitor (from `../../node_modules/@capacitor/ios`)` dependency were found, but they
required a higher minimum deployment target.
[ERROR] An error occurred while running subprocess capacitor.
capacitor sync exited with exit code 1.
Solution 1:[1]
Have you followed Capacitor upgrade guide?
Seems like your required target is lower than expected. Minimum for Capacitor 3 is 12. You have to upgrade both in XCode project and the pod file, as described in the link.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Nebojša Smrzli? |
