question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pod install ... CocoaPods could not find compatible versions for pod "Stripe":

See original GitHub issue

Describe 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:

  1. Make a fresh app, I used npx create-react-native-app
  2. npm install @stripe/stripe-react-native
  3. cd ios, and try and run pod install
  4. 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:closed
  • Created a year ago
  • Comments:31

github_iconTop GitHub Comments

21reactions
abbasmoosavicommented, Oct 28, 2022

@Mahdi-Farahani Put of iOS platform version in Podfile to 13.0 and test it, my bro.

17reactions
igorjoscommented, Nov 11, 2022

Go to ios folder within your project, open Podfile and change platform :ios, '12.4' to platform :ios, '13.0' this fixed the issue for me.

Just for in case is needed do: remove podfile.lock and also do pod install --repo-update

This is on Mac Air M1 chip.

Hope this helps

Read more comments on GitHub >

github_iconTop Results From Across the Web

could not find compatible versions for pod - Stack Overflow
It just work like magic. I think it is a bug that cocoapods cannot solve this kind of constraints in Podfile.lock. Remove the...
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 >
cocoapods could not find compatible versions for pod "rct-folly"
Error: Compatible versions of some pods could not be resolved. You are seeing this error because either: - Versions in the Podfile.lock cached...
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 >
CocoaPods fails with stripe-react-native : r/reactnative - Reddit
CocoaPods could not find compatible versions for pod "stripe-react-native" \[...\] Specs satisfying the 'stripe-react-native (from '../node\_ ...
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