pod install ... CocoaPods could not find compatible versions for pod "Stripe":
See original GitHub issueDescribe the bug
A clear and concise description of what the bug is.
I am trying to add @stripe/stripe-react-native
to a project npm install @stripe/stripe-react-native
seems to run, but when I try and do pod install
I get
[!] CocoaPods could not find compatible versions for pod "Stripe":
In Podfile:
stripe-react-native (from `../node_modules/@stripe/stripe-react-native`) was resolved to 0.18.1, which depends on
Stripe (~> 22.7.0)
None of your spec sources contain a spec satisfying the dependency: `Stripe (~> 22.7.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.
To Reproduce Steps to reproduce the behavior:
- Make a fresh app, I used
npx create-react-native-app
npm install @stripe/stripe-react-native
cd ios
, and try and runpod install
- See error
Expected behavior I would expect the pod install to complete and resolve the pods
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- POD ERROR IS NOT APPLICABLE
Smartphone (please complete the following information):
- POD ERROR IS NOT APPLICABLE
Additional context Add any other context about the problem here.
While walking over an old project, at this point for all intents this is a new app as of this week, REDUX is the only other thing I have installed so far. The error is clearly wanting Stripe (~> 22.7.0)
but I am not seeing any manual iOS links referenced in the README
Issue Analytics
- State:
- Created a year ago
- Comments:31
@Mahdi-Farahani Put of iOS platform version in Podfile to 13.0 and test it, my bro.
Go to
ios
folder within your project, openPodfile
and changeplatform :ios, '12.4'
toplatform :ios, '13.0'
this fixed the issue for me.Just for in case is needed do:
remove podfile.lock
and also dopod install --repo-update
This is on Mac Air M1 chip.
Hope this helps