RevenueCat — Ionic React — CocoaPods не удалось найти совместимые версии для модуля «PurchasesHybridCommon»:

#ionic-framework #capacitor #revenuecat

#ionic-framework #конденсатор #revenuecat

Вопрос:

В настоящее время я пытаюсь реализовать RevenueCat SDK с помощью Ionic React (конденсатор), и при сборке приложения с использованием Ionic Appflow я получаю следующую ошибку

 [18:38:13]: ▸ [error] Error running update: Analyzing dependencies
[18:38:13]: ▸ Fetching podspec for `Capacitor` from `../../node_modules/@capacitor/ios`
[18:38:13]: ▸ Fetching podspec for `CapacitorCommunityHttp` from `../../node_modules/@capacitor-community/http`
[18:38:13]: ▸ Fetching podspec for `CapacitorCordova` from `../../node_modules/@capacitor/ios`
[18:38:13]: ▸ Fetching podspec for `CordovaPlugins` from `../capacitor-cordova-ios-plugins`
[18:38:13]: ▸ Fetching podspec for `CordovaPluginsStatic` from `../capacitor-cordova-ios-plugins`
[18:38:13]: ▸ [!] CocoaPods could not find compatible versions for pod "PurchasesHybridCommon":
[18:38:13]: ▸ In Podfile:
[18:38:13]: ▸ CordovaPluginsStatic (from `../capacitor-cordova-ios-plugins`) was resolved to 2.4.0, which depends on
[18:38:13]: ▸ PurchasesHybridCommon (= 1.2.0)
[18:38:13]: ▸ None of your spec sources contain a spec satisfying the dependency: `PurchasesHybridCommon (= 1.2.0)`.
[18:38:13]: ▸ You have either:
[18:38:13]: ▸ * out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
[18:38:13]: ▸ * mistyped the name or version.
[18:38:13]: ▸ * not added the source repo that hosts the Podspec to your Podfile.
[18:38:13]: ▸ Note: as of CocoaPods 1.0, `pod repo update` does not happen on `pod install` by default.
[18:38:13]: ▸ Sync finished in 3.219s
  

Комментарии:

1. Вы пробовали запускать pod install --repo-update ?

2. Приветствия, думал, я не смогу запустить это из-за того, что нахожусь на Windows. Но мне удалось обойти это, добавив его в «scripts» «build» в package.json.. что заставило Ionic Appflow запустить его для меня. Проблема решена:)

Ответ №1:

Комментарий от @enc_life сработал для меня (в приложении Flutter, не React, но я думаю, что часть iOS работает одинаково в любом случае):

 pod install --repo-update
  

После этого все заработало как по волшебству.

Сообщение об ошибке, которое у меня было, было

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

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

  

Комментарии:

1. У меня это не сработало. : (