Skip to main content
Answer

CocoaPods could not find compatible versions for pod "PurchasesHybridCommon"

  • February 16, 2023
  • 6 replies
  • 5136 views

Forum|alt.badge.img+1

I am facing problems in the latest version of iOS.

Xcode version: Version 14.2 (14C18)
POD Target: 11.0

 

[!] CocoaPods could not find compatible versions for pod "PurchasesHybridCommon":
  In Podfile:
    purchases_flutter (from `.symlinks/plugins/purchases_flutter/ios`) was resolved to 4.10.0, which depends on
      PurchasesHybridCommon (= 4.13.1)

None of your spec sources contain a spec satisfying the dependency: `PurchasesHybridCommon (= 4.13.1)`.

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.

 

flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.7.0, on macOS 13.1 22C65 darwin-arm64, locale tr-TR)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.1)
[✓] VS Code (version 1.75.1)
[✓] Connected device (3 available)
[✓] HTTP Host Availability

• No issues found!

Best answer by Philip Donegan

Try 
Flutter Clean
Pub Get

Pod update

This post has been closed for comments

6 replies

Forum|alt.badge.img+5

Try 
Flutter Clean
Pub Get

Pod update


cody
RevenueCat Staff
Forum|alt.badge.img+8
  • RevenueCat Staff
  • February 22, 2023

Hey @BigLayer, in addition to the suggestion above, were you able to run `pod repo update`?


Forum|alt.badge.img
  • New Member
  • February 24, 2023

Had the same issue here. I ran both the suggestions and it worked.
Thanks, guys!


Forum|alt.badge.img+3
  • New Member
  • March 3, 2023

With an M1 or M2 chip the “pod update” command is:

arch -x86_64 pod update


Forum|alt.badge.img+3

Hello,

What would be the fix for this for React Native Expo?

[!] CocoaPods could not find compatible versions for pod "PurchasesHybridCommon":
In Podfile:
RNPaywalls (from `../node_modules/react-native-purchases-ui`) was resolved to 7.27.0, which depends on
PurchasesHybridCommonUI (= 10.5.0) was resolved to 10.5.0, which depends on
PurchasesHybridCommon (= 10.5.0)
RNPurchases (from `../node_modules/react-native-purchases`) was resolved to 7.27.1, which depends on
PurchasesHybridCommon (= 10.6.1)

 

I guess it’s the same kind of error as the post mentions..

Thanks!


sharif
RevenueCat Staff
Forum|alt.badge.img+9
  • RevenueCat Staff
  • June 18, 2024

Hey @yafim-simanovsky-f0cedc,

This is an old post, if you have tried the recommendations in the previous comments can you make a new post? That way we’ll be able to help you more effectively.