RevenueCat - Ionic React - CocoaPods 找不到 pod“PurchasesHybridCommon”的兼容版本:

jos*_*t94 5 ionic-framework capacitor revenuecat

我目前正在尝试使用 Ionic React(电容器)实现 RevenueCat SDK,在使用 Ionic Appflow 构建应用程序时出现以下错误

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

Mag*_*s W 13

@enc_life 的评论对我有用(在 Flutter 应用程序上,而不是 React,但我猜 iOS 部分的工作原理是一样的):

pod install --repo-update
Run Code Online (Sandbox Code Playgroud)

从那以后,一切都变得神奇起来。

我收到的错误消息是

[!] 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)`.

Run Code Online (Sandbox Code Playgroud)

  • 这对我不起作用。:( (3认同)