RevenueCat / purchases-flutter

Flutter plugin for in-app purchases and subscriptions. Supports iOS, macOS and Android.
https://www.revenuecat.com/
MIT License
602 stars 167 forks source link

Running on Macos returns multiple errors #766

Open Wassiem-Ibr opened 1 year ago

Wassiem-Ibr commented 1 year ago

Environment

• No issues found!

Other information (e.g. stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, etc.) https://github.com/RevenueCat/purchases-ios/issues/2028#issuecomment-1363416805 this is for somebody having a similar issue on the purchases-ios SDK, but I already activated network access on Xcode for the app.

On pub.dev, it's showing that the SDK supports Macos, and on the GitHub page for purchases-flutter, it also shows that Macos is supported. However, around the internet and in some discussions, people are saying that it's not supported, so this really confused us, and we want to confirm whether MacOs is supported or not. This can determine if the mistake is from our side or from the Sdk.

Describe the bug

The SDK can't bring the offering from revenuecat backend on Macos

2023-07-19 17:57:25.499 app[85525:11151895] [Purchases] - DEBUG: ℹ️ Configuring SDK using RevenueCat's UserDefaults suite.
2023-07-19 17:57:25.519 app[85525:11151895] [Purchases] - DEBUG: 👤 Identifying App User ID
2023-07-19 17:57:25.536 app[85525:11151895] [Purchases] - DEBUG: ℹ️ Debug logging enabled
2023-07-19 17:57:25.536 app[85525:11151895] [Purchases] - DEBUG: ℹ️ SDK Version - 4.21.0
2023-07-19 17:57:25.536 app[85525:11151895] [Purchases] - DEBUG: ℹ️ Bundle ID - com.app
2023-07-19 17:57:25.536 app[85525:11151895] [Purchases] - DEBUG: ℹ️ System Version - Version 12.5 (Build 21G72)
2023-07-19 17:57:25.536 app[85525:11151895] [Purchases] - DEBUG: ℹ️ Not using a simulator.
2023-07-19 17:57:25.536 app[85525:11151895] [Purchases] - DEBUG: 👤 No initial App User ID
2023-07-19 17:57:25.557 app[85525:11151895] [Purchases] - DEBUG: ℹ️ Delegate set
2023-07-19 17:57:25.558 app[85525:11151992] [Purchases] - DEBUG: ℹ️ Offerings cache is stale, updating from network in foreground
2023-07-19 17:57:25.559 app[85525:11151992] [Purchases] - DEBUG: ℹ️ ProductEntitlementMapping cache is stale, updating from network.
2023-07-19 17:57:25.569 app[85525:11152016] [Purchases] - DEBUG: ℹ️ GetOfferingsOperation: Started
2023-07-19 17:57:25.571 app[85525:11152016] [Purchases] - DEBUG: ℹ️ There are no requests currently running, starting request GET subscribers/$RCAnonymousID%3Ad7dc3a3dcdaa4943a73fbe7a835def4a/offerings
2023-07-19 17:57:25.593 app[85525:11152016] [Purchases] - DEBUG: ℹ️ API request started: GET /v1/subscribers/$RCAnonymousID:d7dc3a3dcdaa4943a73fbe7a835def4a/offerings
2023-07-19 17:57:26.010 app[85525:11151981] [Purchases] - ERROR: 😿‼️ Error performing request. The operation couldn’t be completed. Operation not permitted
2023-07-19 17:57:26.015 app[85525:11151981] [Purchases] - DEBUG: ℹ️ API request failed: GET /v1/subscribers/$RCAnonymousID:d7dc3a3dcdaa4943a73fbe7a835def4a/offerings: Error performing request. The operation couldn’t be completed. Operation not permitted
2023-07-19 17:57:26.016 app[85525:11151981] [Purchases] - ERROR: 🍎‼️ Error fetching offerings - The operation couldn’t be completed. (RevenueCat.OfferingsManager.Error error 0.)
Underlying error: The operation couldn’t be completed. (RevenueCat.NetworkError error 2.)
2023-07-19 17:57:26.016 app[85525:11151981] [Purchases] - DEBUG: ℹ️ GetOfferingsOperation: Finished
2023-07-19 17:57:26.016 app[85525:11151981] [Purchases] - DEBUG: ℹ️ Serial request done: GET subscribers/$RCAnonymousID%3Ad7dc3a3dcdaa4943a73fbe7a835def4a/offerings, 0 requests left in the queue
2023-07-19 17:57:26.016 app[85525:11152016] [Purchases] - DEBUG: ℹ️ GetProductEntitlementMappingOperation: Started
2023-07-19 17:57:26.016 app[85525:11152016] [Purchases] - DEBUG: ℹ️ There are no requests currently running, starting request GET product_entitlement_mapping
2023-07-19 17:57:26.016 app[85525:11152016] [Purchases] - DEBUG: ℹ️ API request started: GET /v1/product_entitlement_mapping
2023-07-19 17:57:26.024 app[85525:11152016] [Purchases] - ERROR: 😿‼️ Error performing request. The operation couldn’t be completed. Operation not permitted
2023-07-19 17:57:26.025 app[85525:11152016] [Purchases] - DEBUG: ℹ️ API request failed: GET /v1/product_entitlement_mapping: Error performing request. The operation couldn’t be completed. Operation not permitted
2023-07-19 17:57:26.028 app[85525:11152016] [Purchases] - ERROR: 😿‼️ Failed updating ProductEntitlementMapping from network: The operation couldn’t be completed. (RevenueCat.BackendError error 0.)
2023-07-19 17:57:26.028 app[85525:11152016] [Purchases] - DEBUG: ℹ️ GetProductEntitlementMappingOperation: Finished
2023-07-19 17:57:26.028 app[85525:11152016] [Purchases] - DEBUG: ℹ️ Serial request done: GET product_entitlement_mapping, 0 requests left in the queue
2023-07-19 17:57:27.125 app[85525:11152015] [Purchases] - DEBUG: ℹ️ GetCustomerInfoOperation: Started
2023-07-19 17:57:27.125 app[85525:11152015] [Purchases] - DEBUG: ℹ️ There are no requests currently running, starting request GET subscribers/$RCAnonymousID%3Ad7dc3a3dcdaa4943a73fbe7a835def4a
2023-07-19 17:57:27.125 app[85525:11152015] [Purchases] - DEBUG: ℹ️ API request started: GET /v1/subscribers/$RCAnonymousID:d7dc3a3dcdaa4943a73fbe7a835def4a
2023-07-19 17:57:27.128 app[85525:11152015] [Purchases] - ERROR: 😿‼️ Error performing request. The operation couldn’t be completed. Operation not permitted
2023-07-19 17:57:27.128 app[85525:11152015] [Purchases] - DEBUG: ℹ️ API request failed: GET /v1/subscribers/$RCAnonymousID:d7dc3a3dcdaa4943a73fbe7a835def4a: Error performing request. The operation couldn’t be completed. Operation not permitted
2023-07-19 17:57:27.128 app[85525:11152015] [Purchases] - WARN: ⚠️ Attempt to update CustomerInfo from network failed.
The operation couldn’t be completed. (RevenueCat.BackendError error 0.)
Underlying error: The operation couldn’t be completed. (RevenueCat.NetworkError error 2.)
2023-07-19 17:57:27.128 app[85525:11152015] [Purchases] - DEBUG: ℹ️ GetCustomerInfoOperation: Finished
2023-07-19 17:57:27.128 app[85525:11152015] [Purchases] - DEBUG: ℹ️ Serial request done: GET subscribers/$RCAnonymousID%3Ad7dc3a3dcdaa4943a73fbe7a835def4a, 0 requests left in the queue
2023-07-19 17:58:03.560 app[85525:11151895] [Purchases] - DEBUG: ℹ️ applicationDidBecomeActive
2023-07-19 17:58:03.563 app[85525:11151895] [Purchases] - DEBUG: ℹ️ CustomerInfo cache is stale, updating from network in foreground.
2023-07-19 17:58:03.563 app[85525:11151895] [Purchases] - DEBUG: ℹ️ ProductEntitlementMapping cache is stale, updating from network.
2023-07-19 17:58:03.563 app[85525:11151895] [Purchases] - DEBUG: ℹ️ Offerings cache is stale, updating from network in foreground
2023-07-19 17:58:03.564 app[85525:11153024] [Purchases] - DEBUG: ℹ️ GetProductEntitlementMappingOperation: Started
2023-07-19 17:58:03.564 app[85525:11153024] [Purchases] - DEBUG: ℹ️ There are no requests currently running, starting request GET product_entitlement_mapping
2023-07-19 17:58:03.564 app[85525:11153024] [Purchases] - DEBUG: ℹ️ API request started: GET /v1/product_entitlement_mapping
2023-07-19 17:58:03.573 app[85525:11153023] [Purchases] - ERROR: 😿‼️ Error performing request. The operation couldn’t be completed. Operation not permitted
2023-07-19 17:58:03.574 app[85525:11153023] [Purchases] - DEBUG: ℹ️ API request failed: GET /v1/product_entitlement_mapping: Error performing request. The operation couldn’t be completed. Operation not permitted
2023-07-19 17:58:03.574 app[85525:11153023] [Purchases] - ERROR: 😿‼️ Failed updating ProductEntitlementMapping from network: The operation couldn’t be completed. (RevenueCat.BackendError error 0.)
2023-07-19 17:58:03.574 app[85525:11153023] [Purchases] - DEBUG: ℹ️ GetProductEntitlementMappingOperation: Finished
2023-07-19 17:58:03.574 app[85525:11153023] [Purchases] - DEBUG: ℹ️ Serial request done: GET product_entitlement_mapping, 0 requests left in the queue
2023-07-19 17:58:03.574 app[85525:11153024] [Purchases] - DEBUG: ℹ️ GetOfferingsOperation: Started
2023-07-19 17:58:03.574 app[85525:11153024] [Purchases] - DEBUG: ℹ️ There are no requests currently running, starting request GET subscribers/$RCAnonymousID%3Ad7dc3a3dcdaa4943a73fbe7a835def4a/offerings
2023-07-19 17:58:03.576 app[85525:11153024] [Purchases] - DEBUG: ℹ️ API request started: GET /v1/subscribers/$RCAnonymousID:d7dc3a3dcdaa4943a73fbe7a835def4a/offerings
2023-07-19 17:58:03.580 app[85525:11153023] [Purchases] - ERROR: 😿‼️ Error performing request. The operation couldn’t be completed. Operation not permitted
2023-07-19 17:58:03.580 app[85525:11153023] [Purchases] - DEBUG: ℹ️ API request failed: GET /v1/subscribers/$RCAnonymousID:d7dc3a3dcdaa4943a73fbe7a835def4a/offerings: Error performing request. The operation couldn’t be completed. Operation not permitted
2023-07-19 17:58:03.580 app[85525:11153023] [Purchases] - ERROR: 🍎‼️ Error fetching offerings - The operation couldn’t be completed. (RevenueCat.OfferingsManager.Error error 0.)
Underlying error: The operation couldn’t be completed. (RevenueCat.NetworkError error 2.)
2023-07-19 17:58:03.580 app[85525:11153023] [Purchases] - DEBUG: ℹ️ GetOfferingsOperation: Finished
2023-07-19 17:58:03.580 app[85525:11153023] [Purchases] - DEBUG: ℹ️ Serial request done: GET subscribers/$RCAnonymousID%3Ad7dc3a3dcdaa4943a73fbe7a835def4a/offerings, 0 requests left in the queue
2023-07-19 17:58:03.602 app[85525:11153023] [Purchases] - DEBUG: ℹ️ GetCustomerInfoOperation: Started
2023-07-19 17:58:03.602 app[85525:11153023] [Purchases] - DEBUG: ℹ️ There are no requests currently running, starting request GET subscribers/$RCAnonymousID%3Ad7dc3a3dcdaa4943a73fbe7a835def4a
2023-07-19 17:58:03.602 app[85525:11153023] [Purchases] - DEBUG: ℹ️ API request started: GET /v1/subscribers/$RCAnonymousID:d7dc3a3dcdaa4943a73fbe7a835def4a
2023-07-19 17:58:03.604 app[85525:11153023] [Purchases] - ERROR: 😿‼️ Error performing request. The operation couldn’t be completed. Operation not permitted
2023-07-19 17:58:03.604 app[85525:11153023] [Purchases] - DEBUG: ℹ️ API request failed: GET /v1/subscribers/$RCAnonymousID:d7dc3a3dcdaa4943a73fbe7a835def4a: Error performing request. The operation couldn’t be completed. Operation not permitted
2023-07-19 17:58:03.604 app[85525:11153023] [Purchases] - WARN: ⚠️ Attempt to update CustomerInfo from network failed.
The operation couldn’t be completed. (RevenueCat.BackendError error 0.)
Underlying error: The operation couldn’t be completed. (RevenueCat.NetworkError error 2.)
2023-07-19 17:58:03.604 app[85525:11153023] [Purchases] - DEBUG: ℹ️ GetCustomerInfoOperation: Finished
2023-07-19 17:58:03.604 app[85525:11153023] [Purchases] - DEBUG: ℹ️ Serial request done: GET subscribers/$RCAnonymousID%3Ad7dc3a3dcdaa4943a73fbe7a835def4a, 0 requests left in the queue

We are trying to run our Flutter app on MacOS, and every time we try to run it, we are getting the same errors.

RCGitBot commented 1 year ago

👀 We've just linked this issue to our internal tracker and notified the team. Thank you for reporting, we're checking this out!

NachoSoto commented 1 year ago

Thanks for the report! It looks like requests are not going through. By any chance, do you have this disabled, and therefore blocking all requests?

Screenshot 2023-07-19 at 19 56 31
Wassiem-Ibr commented 1 year ago

Thank you for the swift response. No, I have it activated

Screenshot 2023-07-19 at 19 15 39
NachoSoto commented 1 year ago

Looks like you're targeting version 5.0.0 of purchases-flutter, but which version are you using? The error you're getting is NetworkError.networkError.

We've done a lot of improvements to ensure that we always include the underlying error (like https://github.com/RevenueCat/purchases-ios/pull/1974) Are you running an old version by any chance? I just added a few tests to make sure that we do in fact show the underlying error domain+code: https://github.com/RevenueCat/purchases-ios/pull/2843.

Hopefully updating purchases-flutter will improve the error in the logs so we can figure out together why that's happening. Thanks.

Wassiem-Ibr commented 1 year ago

I have been trying all day long after updating purchases_flutter: ^5.3.0 but I am always getting this error, and I can't seem to find the reason why, I am not changing the content of podfile.lock and leaving it as is, so maybe you can give me some insight into that.

 [!] CocoaPods could not find compatible versions for pod "PurchasesHybridCommon":
      In snapshot (Podfile.lock):
        PurchasesHybridCommon (= 5.0.0)

      In Podfile:
        purchases_flutter (from `Flutter/ephemeral/.symlinks/plugins/purchases_flutter/macos`) was resolved to 5.3.0, which depends on
          PurchasesHybridCommon (= 5.3.0)

    You have either:
     * out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
     * changed the constraints of dependency `PurchasesHybridCommon` inside your development pod `purchases_flutter`.
       You should run `pod update PurchasesHybridCommon` to apply changes you've made.

By the end of the console it gave this error message: Error: CocoaPods's specs repository is too out-of-date to satisfy dependencies. To update the CocoaPods specs, run: pod repo update

However, I have updated my gem to the latest version, and I have not changed the content of the podprofile.lock and I have ran the pod repo update but no changes still failing to the same error

Screenshot 2023-07-20 at 16 11 27

and this is the pubspec.yaml for revenuecat

Screenshot 2023-07-20 at 16 12 51
NachoSoto commented 1 year ago

RevenueCat 4.24.1 is the last version for purchases-flutter. Can you confirm you're running that? It's not clear from your message if that's after you successfully updated it or if you were running that before already.

Did you try running pod repo update?

Wassiem-Ibr commented 1 year ago

After update, I am getting this version 4.24.1 when I run the app and fetish the pods, I tried "pod repo update" and didn't solve it.

NachoSoto commented 1 year ago

Cool, when you try to reproduce, do you get more details in the logs? 🙏🏻

Wassiem-Ibr commented 1 year ago
Launching lib/main.dart on macOS in debug mode...
Running pod install...
CocoaPods' output:
↳
      Preparing

    Analyzing dependencies

    Inspecting targets to integrate
      Using `ARCHS` setting to build architectures of target `Pods-Runner`: (``)
      Using `ARCHS` setting to build architectures of target `Pods-RunnerTests`: (``)

    Finding Podfile changes
      - FlutterMacOS
      - cloud_firestore
      - file_selector_macos
      - firebase_auth
      - firebase_core
      - firebase_messaging
      - in_app_review
      - path_provider_foundation
      - pdf_render
      - printing
      - purchases_flutter
      - share_plus
      - sign_in_with_apple
      - sqflite
      - url_launcher_macos

    Fetching external sources
    -> Fetching podspec for `FlutterMacOS` from `Flutter/ephemeral`
    -> Fetching podspec for `cloud_firestore` from `Flutter/ephemeral/.symlinks/plugins/cloud_firestore/macos`
    cloud_firestore: Using Firebase SDK version '10.10.0' defined in 'firebase_core'
    -> Fetching podspec for `file_selector_macos` from `Flutter/ephemeral/.symlinks/plugins/file_selector_macos/macos`
    -> Fetching podspec for `firebase_auth` from `Flutter/ephemeral/.symlinks/plugins/firebase_auth/macos`
    firebase_auth: Using Firebase SDK version '10.10.0' defined in 'firebase_core'
    -> Fetching podspec for `firebase_core` from `Flutter/ephemeral/.symlinks/plugins/firebase_core/macos`
    firebase_core: Using Firebase SDK version '10.10.0' defined in 'firebase_core'
    -> Fetching podspec for `firebase_messaging` from `Flutter/ephemeral/.symlinks/plugins/firebase_messaging/macos`
    firebase_messaging: Using Firebase SDK version '10.10.0' defined in 'firebase_core'
    -> Fetching podspec for `in_app_review` from `Flutter/ephemeral/.symlinks/plugins/in_app_review/macos`
    -> Fetching podspec for `path_provider_foundation` from `Flutter/ephemeral/.symlinks/plugins/path_provider_foundation/darwin`
    -> Fetching podspec for `pdf_render` from `Flutter/ephemeral/.symlinks/plugins/pdf_render/macos`
    -> Fetching podspec for `printing` from `Flutter/ephemeral/.symlinks/plugins/printing/macos`
    -> Fetching podspec for `purchases_flutter` from `Flutter/ephemeral/.symlinks/plugins/purchases_flutter/macos`
    -> Fetching podspec for `share_plus` from `Flutter/ephemeral/.symlinks/plugins/share_plus/macos`
    -> Fetching podspec for `sign_in_with_apple` from `Flutter/ephemeral/.symlinks/plugins/sign_in_with_apple/macos`
    -> Fetching podspec for `sqflite` from `Flutter/ephemeral/.symlinks/plugins/sqflite/macos`
    -> Fetching podspec for `url_launcher_macos` from `Flutter/ephemeral/.symlinks/plugins/url_launcher_macos/macos`

    Resolving dependencies of `Podfile`
      CDN: trunk Relative path: CocoaPods-version.yml exists! Returning local because checking is only performed in repo update
      CDN: trunk Relative path: all_pods_versions_0_3_5.txt exists! Returning local because checking is only performed in repo update
      CDN: trunk Relative path: Specs/0/3/5/Firebase/10.12.0/Firebase.podspec.json exists! Returning local because checking is only performed in repo update
      CDN: trunk Relative path: Specs/0/3/5/Firebase/10.10.0/Firebase.podspec.json exists! Returning local because checking is only performed in repo update
      CDN: trunk Relative path: Specs/0/3/5/Firebase/10.10.0/Firebase.podspec.json exists! Returning local because checking is only performed in repo update
      CDN: trunk Relative path: all_pods_versions_6_1_e.txt exists! Returning local because checking is only performed in repo update
      CDN: trunk Relative path: Specs/6/1/e/nanopb/2.30909.0/nanopb.podspec.json exists! Returning local because checking is only performed in repo update
      CDN: trunk Relative path: Specs/0/3/5/Firebase/10.10.0/Firebase.podspec.json exists! Returning local because checking is only performed in repo update
      CDN: trunk Relative path: all_pods_versions_c_0_4.txt exists! Returning local because checking is only performed in repo update
      CDN: trunk Relative path: Specs/c/0/4/Flutter/3.0.0/Flutter.podspec.json exists! Returning local because checking is only performed in repo update
      CDN: trunk Relative path: all_pods_versions_9_a_d.txt exists! Returning local because checking is only performed in repo update
      CDN: trunk Relative path: Specs/9/a/d/PurchasesHybridCommon/5.4.0/PurchasesHybridCommon.podspec.json exists! Returning local because checking is only performed in repo update
      CDN: trunk Relative path: all_pods_versions_f_4_e.txt exists! Returning local because checking is only performed in repo update
      CDN: trunk Relative path: Specs/f/4/e/FMDB/2.7.5/FMDB.podspec.json exists! Returning local because checking is only performed in repo update
      CDN: trunk Relative path: Specs/0/3/5/Firebase/10.10.0/Firebase.podspec.json exists! Returning local because checking is only performed in repo update
    [!] CocoaPods could not find compatible versions for pod "PurchasesHybridCommon":
      In snapshot (Podfile.lock):
        PurchasesHybridCommon (= 5.0.0)

      In Podfile:
        purchases_flutter (from `Flutter/ephemeral/.symlinks/plugins/purchases_flutter/macos`) was resolved to 5.3.0, which depends on
          PurchasesHybridCommon (= 5.3.0)

    You have either:
     * out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
     * changed the constraints of dependency `PurchasesHybridCommon` inside your development pod `purchases_flutter`.
       You should run `pod update PurchasesHybridCommon` to apply changes you've made.

    /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:317:in `raise_error_unless_state'
    /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:299:in `block in unwind_for_conflict'
    <internal:kernel>:90:in `tap'
    /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:297:in `unwind_for_conflict'
    /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:257:in `process_topmost_state'
    /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:182:in `resolve'
    /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/molinillo-0.8.0/lib/molinillo/resolver.rb:43:in `resolve'
    /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/cocoapods-1.12.1/lib/cocoapods/resolver.rb:94:in `resolve'
    /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/cocoapods-1.12.1/lib/cocoapods/installer/analyzer.rb:1082:in `block in resolve_dependencies'
    /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/cocoapods-1.12.1/lib/cocoapods/user_interface.rb:64:in `section'
    /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/cocoapods-1.12.1/lib/cocoapods/installer/analyzer.rb:1080:in `resolve_dependencies'
    /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/cocoapods-1.12.1/lib/cocoapods/installer/analyzer.rb:125:in `analyze'
    /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/cocoapods-1.12.1/lib/cocoapods/installer.rb:422:in `analyze'
    /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/cocoapods-1.12.1/lib/cocoapods/installer.rb:244:in `block in resolve_dependencies'
    /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/cocoapods-1.12.1/lib/cocoapods/user_interface.rb:64:in `section'
    /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/cocoapods-1.12.1/lib/cocoapods/installer.rb:243:in `resolve_dependencies'
    /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/cocoapods-1.12.1/lib/cocoapods/installer.rb:162:in `install!'
    /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/cocoapods-1.12.1/lib/cocoapods/command/install.rb:52:in `run'
    /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/claide-1.1.0/lib/claide/command.rb:334:in `run'
    /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/cocoapods-1.12.1/lib/cocoapods/command.rb:52:in `run'
    /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/cocoapods-1.12.1/bin/pod:55:in `<top (required)>'
    /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/bin/pod:25:in `load'
    /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/bin/pod:25:in `<main>'

Error: CocoaPods's specs repository is too out-of-date to satisfy dependencies.
To update the CocoaPods specs, run:
  pod repo update

Exception: Error running pod install

I was not able to run the app it failed because of revenue cat SDK, so no logs after this one, it just stopped

NachoSoto commented 1 year ago

What do you get after pod repo update?

Wassiem-Ibr commented 1 year ago

I deleted all pods using "pod deintegrate" and deleted podfile.lock, then "flutter clean" and then "flutter pub get" and then I run "pod update --repo-update" and still the same

MacBook-Pro ios % pod update --repo-update
Update all pods
Updating local specs repositories
Analyzing dependencies
cloud_firestore: Using Firebase SDK version '10.10.0' defined in 'firebase_core'
firebase_auth: Using Firebase SDK version '10.10.0' defined in 'firebase_core'
firebase_core: Using Firebase SDK version '10.10.0' defined in 'firebase_core'
firebase_messaging: Using Firebase SDK version '10.10.0' defined in 'firebase_core'
Downloading dependencies
Installing AppAuth (1.6.2)
Installing AppsFlyerFramework (6.10.1)
Installing BoringSSL-GRPC (0.0.24)
Installing DKImagePickerController (4.3.4)
Installing DKPhotoGallery (0.0.17)
Installing FMDB (2.7.5)
Installing Firebase (10.10.0)
Installing FirebaseAppCheckInterop (10.12.0)
Installing FirebaseAuth (10.10.0)
Installing FirebaseCore (10.10.0)
Installing FirebaseCoreInternal (10.12.0)
Installing FirebaseFirestore (10.10.0)
Installing FirebaseInstallations (10.12.0)
Installing FirebaseMessaging (10.10.0)
Installing Flutter (1.0.0)
Installing GTMAppAuth (1.3.1)
Installing GTMSessionFetcher (2.3.0)
Installing Google-Mobile-Ads-SDK (9.14.0)
Installing GoogleAppMeasurement (10.12.0)
Installing GoogleDataTransport (9.2.3)
Installing GoogleSignIn (6.2.4)
Installing GoogleUserMessagingPlatform (2.0.1)
Installing GoogleUtilities (7.11.4)
Installing OrderedSet (5.0.0)
Installing PromisesObjC (2.2.0)
Installing PurchasesHybridCommon (5.3.0)
Installing RevenueCat (4.24.1)
Installing SDWebImage (5.17.0)
Installing SwiftyGif (5.4.4)
Installing abseil (1.20220623.0)
Installing app_tracking_transparency (0.0.1)
Installing appsflyer_sdk (6.8.0)
Installing cloud_firestore (4.8.1)
Installing file_picker (0.0.1)
Installing firebase_auth (4.6.3)
Installing firebase_core (2.14.0)
Installing firebase_messaging (14.6.3)
Installing flutter_inappwebview (0.0.1)
Installing flutter_keyboard_visibility (0.0.1)
Installing flutter_native_image (0.0.1)
Installing gRPC-C++ (1.50.1)
Installing gRPC-Core (1.50.1)
Installing google_mobile_ads (1.0.0)
Installing google_sign_in_ios (0.0.1)
Installing image_picker_ios (0.0.1)
Installing in_app_review (0.2.0)
Installing leveldb-library (1.22.2)
Installing nanopb (2.30909.0)
Installing open_filex (0.0.2)
Installing path_provider_foundation (0.0.1)
Installing pdf_render (0.0.1)
Installing printing (1.0.0)
Installing purchases_flutter (5.3.0)
Installing share_plus (0.0.1)
Installing sign_in_with_apple (0.0.1)
Installing sqflite (0.0.3)
Installing url_launcher_ios (0.0.1)
Generating Pods project
Integrating client project
Pod installation complete! There are 24 dependencies from the Podfile and 57 total pods installed.

Running "pod repo update" will generate this one line only but does not change anything regarding revenuecat versions.

Updating spec repo `trunk`
NachoSoto commented 1 year ago

Sorry I think I was misunderstanding. So you're saying that now that you ran pod update --repo-update, you know for sure that you were already on the latest version? Actually I just remembered, our debug logs print the version:

DEBUG: ℹ️ SDK Version - 4.21.0

Which confirms you were on an old one :) But now you're on the latest:

Installing RevenueCat (4.24.1)

Can you run the project again?

Wassiem-Ibr commented 1 year ago

Yes, I am now on the latest version but the run fails everytime after updating revenuecat, I tried running it now as you asked and this is what I got

Launching lib/main.dart on macOS in debug mode...
Running pod install...
CocoaPods' output:
↳
      Preparing

    Analyzing dependencies

    Inspecting targets to integrate
      Using `ARCHS` setting to build architectures of target `Pods-Runner`: (``)
      Using `ARCHS` setting to build architectures of target `Pods-RunnerTests`: (``)

    Finding Podfile changes
      - FlutterMacOS
      - cloud_firestore
      - file_selector_macos
      - firebase_auth
      - firebase_core
      - firebase_messaging
      - in_app_review
      - path_provider_foundation
      - pdf_render
      - printing
      - purchases_flutter
      - share_plus
      - sign_in_with_apple
      - sqflite
      - url_launcher_macos

    Fetching external sources
    -> Fetching podspec for `FlutterMacOS` from `Flutter/ephemeral`
    -> Fetching podspec for `cloud_firestore` from `Flutter/ephemeral/.symlinks/plugins/cloud_firestore/macos`
    cloud_firestore: Using Firebase SDK version '10.10.0' defined in 'firebase_core'
    -> Fetching podspec for `file_selector_macos` from `Flutter/ephemeral/.symlinks/plugins/file_selector_macos/macos`
    -> Fetching podspec for `firebase_auth` from `Flutter/ephemeral/.symlinks/plugins/firebase_auth/macos`
    firebase_auth: Using Firebase SDK version '10.10.0' defined in 'firebase_core'
    -> Fetching podspec for `firebase_core` from `Flutter/ephemeral/.symlinks/plugins/firebase_core/macos`
    firebase_core: Using Firebase SDK version '10.10.0' defined in 'firebase_core'
    -> Fetching podspec for `firebase_messaging` from `Flutter/ephemeral/.symlinks/plugins/firebase_messaging/macos`
    firebase_messaging: Using Firebase SDK version '10.10.0' defined in 'firebase_core'
    -> Fetching podspec for `in_app_review` from `Flutter/ephemeral/.symlinks/plugins/in_app_review/macos`
    -> Fetching podspec for `path_provider_foundation` from `Flutter/ephemeral/.symlinks/plugins/path_provider_foundation/darwin`
    -> Fetching podspec for `pdf_render` from `Flutter/ephemeral/.symlinks/plugins/pdf_render/macos`
    -> Fetching podspec for `printing` from `Flutter/ephemeral/.symlinks/plugins/printing/macos`
    -> Fetching podspec for `purchases_flutter` from `Flutter/ephemeral/.symlinks/plugins/purchases_flutter/macos`
    -> Fetching podspec for `share_plus` from `Flutter/ephemeral/.symlinks/plugins/share_plus/macos`
    -> Fetching podspec for `sign_in_with_apple` from `Flutter/ephemeral/.symlinks/plugins/sign_in_with_apple/macos`
    -> Fetching podspec for `sqflite` from `Flutter/ephemeral/.symlinks/plugins/sqflite/macos`
    -> Fetching podspec for `url_launcher_macos` from `Flutter/ephemeral/.symlinks/plugins/url_launcher_macos/macos`

    Resolving dependencies of `Podfile`
      CDN: trunk Relative path: CocoaPods-version.yml exists! Returning local because checking is only performed in repo update
      CDN: trunk Relative path: all_pods_versions_0_3_5.txt exists! Returning local because checking is only performed in repo update
      CDN: trunk Relative path: Specs/0/3/5/Firebase/10.12.0/Firebase.podspec.json exists! Returning local because checking is only performed in repo update
      CDN: trunk Relative path: Specs/0/3/5/Firebase/10.10.0/Firebase.podspec.json exists! Returning local because checking is only performed in repo update
      CDN: trunk Relative path: Specs/0/3/5/Firebase/10.10.0/Firebase.podspec.json exists! Returning local because checking is only performed in repo update
      CDN: trunk Relative path: all_pods_versions_6_1_e.txt exists! Returning local because checking is only performed in repo update
      CDN: trunk Relative path: Specs/6/1/e/nanopb/2.30909.0/nanopb.podspec.json exists! Returning local because checking is only performed in repo update
      CDN: trunk Relative path: Specs/0/3/5/Firebase/10.10.0/Firebase.podspec.json exists! Returning local because checking is only performed in repo update
      CDN: trunk Relative path: all_pods_versions_c_0_4.txt exists! Returning local because checking is only performed in repo update
      CDN: trunk Relative path: Specs/c/0/4/Flutter/3.0.0/Flutter.podspec.json exists! Returning local because checking is only performed in repo update
      CDN: trunk Relative path: all_pods_versions_9_a_d.txt exists! Returning local because checking is only performed in repo update
      CDN: trunk Relative path: Specs/9/a/d/PurchasesHybridCommon/5.4.0/PurchasesHybridCommon.podspec.json exists! Returning local because checking is only performed in repo update
      CDN: trunk Relative path: all_pods_versions_f_4_e.txt exists! Returning local because checking is only performed in repo update
      CDN: trunk Relative path: Specs/f/4/e/FMDB/2.7.5/FMDB.podspec.json exists! Returning local because checking is only performed in repo update
      CDN: trunk Relative path: Specs/0/3/5/Firebase/10.10.0/Firebase.podspec.json exists! Returning local because checking is only performed in repo update
    [!] CocoaPods could not find compatible versions for pod "PurchasesHybridCommon":
      In snapshot (Podfile.lock):
        PurchasesHybridCommon (= 5.0.0)

      In Podfile:
        purchases_flutter (from `Flutter/ephemeral/.symlinks/plugins/purchases_flutter/macos`) was resolved to 5.3.0, which depends on
          PurchasesHybridCommon (= 5.3.0)

    You have either:
     * out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
     * changed the constraints of dependency `PurchasesHybridCommon` inside your development pod `purchases_flutter`.
       You should run `pod update PurchasesHybridCommon` to apply changes you've made.

    /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:317:in `raise_error_unless_state'
    /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:299:in `block in unwind_for_conflict'
    <internal:kernel>:90:in `tap'
    /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:297:in `unwind_for_conflict'
    /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:257:in `process_topmost_state'
    /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:182:in `resolve'
    /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/molinillo-0.8.0/lib/molinillo/resolver.rb:43:in `resolve'
    /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/cocoapods-1.12.1/lib/cocoapods/resolver.rb:94:in `resolve'
    /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/cocoapods-1.12.1/lib/cocoapods/installer/analyzer.rb:1082:in `block in resolve_dependencies'
    /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/cocoapods-1.12.1/lib/cocoapods/user_interface.rb:64:in `section'
    /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/cocoapods-1.12.1/lib/cocoapods/installer/analyzer.rb:1080:in `resolve_dependencies'
    /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/cocoapods-1.12.1/lib/cocoapods/installer/analyzer.rb:125:in `analyze'
    /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/cocoapods-1.12.1/lib/cocoapods/installer.rb:422:in `analyze'
    /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/cocoapods-1.12.1/lib/cocoapods/installer.rb:244:in `block in resolve_dependencies'
    /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/cocoapods-1.12.1/lib/cocoapods/user_interface.rb:64:in `section'
    /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/cocoapods-1.12.1/lib/cocoapods/installer.rb:243:in `resolve_dependencies'
    /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/cocoapods-1.12.1/lib/cocoapods/installer.rb:162:in `install!'
    /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/cocoapods-1.12.1/lib/cocoapods/command/install.rb:52:in `run'
    /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/claide-1.1.0/lib/claide/command.rb:334:in `run'
    /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/cocoapods-1.12.1/lib/cocoapods/command.rb:52:in `run'
    /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/gems/cocoapods-1.12.1/bin/pod:55:in `<top (required)>'
    /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/bin/pod:25:in `load'
    /opt/homebrew/Cellar/cocoapods/1.12.1/libexec/bin/pod:25:in `<main>'

Error: CocoaPods's specs repository is too out-of-date to satisfy dependencies.
To update the CocoaPods specs, run:
  pod repo update

Exception: Error running pod install
NachoSoto commented 1 year ago

Oh gotcha, I'm caught up now 😅 sorry for the back and forth. That seems like a common Flutter issue, have you tried some of the workarounds in https://stackoverflow.com/questions/64443888/flutter-cocoapodss-specs-repository-is-too-out-of-date-to-satisfy-dependencies by any chance?

Wassiem-Ibr commented 1 year ago

I used to get this issue, so I am familiar with it, especially with Firebase pods. However, I tried every solution in the URL that you provided but I am still getting the same issue. Nothing seem to make the app see revenuecat pods.

Do you know any solution that I can implement to force it to see the pod?

Wassiem-Ibr commented 1 year ago

Hello

I just wanted to let you know that after the new update for Revenuecat, it worked fine on macOS, and I stopped receiving the Cocoapods bug. However, now I am facing a configuration issue hhhhh, and I am looking into how to solve it on Macos. Do you know if I need to do anything for macOS on the app store connect or Revenuecat dashboard?

NachoSoto commented 1 year ago

Great to hear you resolved the CocoaPods issue! What configuration are you facing now?

Wassiem-Ibr commented 1 year ago

If I run the app for an IOS phone the offerings are ok, but when I run it for macOS, I get this error for all my offerings.

[offering] WARN: ⚠️ There's a problem with your configuration. No packages could be found for offering with  identifier all_subs. This could be due to Products not being configured correctly in the RevenueCat dashboard, App Store Connect (or the StoreKit Configuration file if one is being used). 
To configure products, follow the instructions in https://rev.cat/how-to-configure-offerings. 
NachoSoto commented 1 year ago

If I run the app for an IOS phone the offerings are ok, but when I run it for macOS, I get this error for all my offerings.

Is this a universal app, with a shared configuration on App Store Connect and the RevenueCat dashboard?

Wassiem-Ibr commented 1 year ago

Well, I am not sure 100%, but I think yes it's a universal app. Allow me to share with you the details:

I publish the IOS and MacOS apps under the same app on the app store image

And under Identifiers at Apple developer, the bundle id is for all platforms: image

On Revenuecat dashboard, I have not changed anything because it's the same app. Is there anything that I am supposed to do?

NachoSoto commented 1 year ago

All that looks good. Are you using a StoreKit config file when launching the app on macOS? Is there anything else in the console that could indicate why products are failing to be fetched?

Wassiem-Ibr commented 1 year ago

StoreKit config file is not added to my revenuecat dashboard.


2023-08-05 14:53:07.126225+0100 app[38764:3518830] [configure] DEBUG: ℹ️ Configuring SDK using RevenueCat's UserDefaults suite.
2023-08-05 14:53:07.132333+0100 app[38764:3518830] [identity] DEBUG: 👤 Identifying App User ID
2023-08-05 14:53:07.136971+0100 app[38764:3518830] [store_kit] DEBUG: ℹ️ Observing StoreKit.Transaction.updates
2023-08-05 14:53:07.137645+0100 app[38764:3518830] [configure] DEBUG: ℹ️ Debug logging enabled
2023-08-05 14:53:07.137663+0100 app[38764:3518830] [configure] DEBUG: ℹ️ SDK Version - 4.25.1
2023-08-05 14:53:07.137678+0100 app[38764:3518830] [configure] DEBUG: ℹ️ Bundle ID - com.app.templates
2023-08-05 14:53:07.137694+0100 app[38764:3518830] [configure] DEBUG: ℹ️ System Version - Version 12.5 (Build 21G72)
2023-08-05 14:53:07.137704+0100 app[38764:3518830] [configure] DEBUG: ℹ️ Not using a simulator.
2023-08-05 14:53:07.137714+0100 app[38764:3518830] [configure] DEBUG: 👤 No initial App User ID
2023-08-05 14:53:07.137723+0100 app[38764:3518830] [configure] DEBUG: ℹ️ Purchases is configured with response verification disabled
2023-08-05 14:53:07.162892+0100 app[38764:3518830] [configure] DEBUG: ℹ️ Delegate set
2023-08-05 14:53:07.168910+0100 app[38764:3519556] [offering] DEBUG: ℹ️ Offerings cache is stale, updating from network in foreground
2023-08-05 14:53:07.169102+0100 app[38764:3519556] [offline_entitlements] DEBUG: ℹ️ ProductEntitlementMapping cache is stale, updating from network.
2023-08-05 14:53:07.170191+0100 app[38764:3519580] [network] DEBUG: ℹ️ GetOfferingsOperation: Started
2023-08-05 14:53:07.170347+0100 app[38764:3519580] [network] DEBUG: ℹ️ There are no requests currently running, starting request GET subscribers/$RCAnonymousID%3Ad7dc3a3dcdaa4943a73fbe7a835def4a/offerings
2023-08-05 14:53:07.177189+0100 app[38764:3519580] [network] DEBUG: ℹ️ API request started: GET /v1/subscribers/$RCAnonymousID:d7dc3a3dcdaa4943a73fbe7a835def4a/offerings
2023-08-05 14:53:07.238181+0100 app[38764:3519556] [Default] Error enumerating unfinished transactions for first transaction listener: Error Domain=ASDErrorDomain Code=509 "No active account" UserInfo={NSLocalizedDescription=No active account}
2023-08-05 14:53:07.242913+0100 app[38764:3519556] [Default] Error enumerating unfinished transactions: Error Domain=ASDErrorDomain Code=509 "No active account" UserInfo={NSLocalizedDescription=No active account}
2023-08-05 14:53:09.222417+0100 app[38764:3519580] [network] DEBUG: ℹ️ API request completed: GET /v1/subscribers/$RCAnonymousID:d7dc3a3dcdaa4943a73fbe7a835def4a/offerings (200)
2023-08-05 14:53:09.226718+0100 app[38764:3519580] [store_kit] DEBUG: ℹ️ No existing products cached, starting store products request for: ["app_sub_1month_1.5", "app_Sub_Prm_12Month_3", "app_sub_6month_3.99_No_Trial", "app_template_15", "app_non_no_ads"]
2023-08-05 14:53:09.226801+0100 app[38764:3519580] [network] DEBUG: ℹ️ GetOfferingsOperation: Finished
2023-08-05 14:53:09.226910+0100 app[38764:3519580] [network] DEBUG: ℹ️ Serial request done: GET subscribers/$RCAnonymousID%3Ad7dc3a3dcdaa4943a73fbe7a835def4a/offerings, 0 requests left in the queue
2023-08-05 14:53:09.226910+0100 app[38764:3519555] [store_kit] DEBUG: ℹ️ No existing products cached, starting store products request for: ["app_sub_1month_1.5", "app_Sub_Prm_12Month_3", "app_sub_6month_3.99_No_Trial", "app_template_15", "app_non_no_ads"]
2023-08-05 14:53:09.226962+0100 app[38764:3519556] [network] DEBUG: ℹ️ GetProductEntitlementMappingOperation: Started
2023-08-05 14:53:09.233700+0100 app[38764:3519556] [network] DEBUG: ℹ️ There are no requests currently running, starting request GET product_entitlement_mapping
2023-08-05 14:53:09.235164+0100 app[38764:3519556] [network] DEBUG: ℹ️ API request started: GET /v1/product_entitlement_mapping
2023-08-05 14:53:09.532358+0100 app[38764:3519580] [network] DEBUG: ℹ️ API request completed: GET /v1/product_entitlement_mapping (304)
2023-08-05 14:53:09.535772+0100 app[38764:3519580] [offline_entitlements] DEBUG: ℹ️ ProductEntitlementMapping cache updated from network.
2023-08-05 14:53:09.537695+0100 app[38764:3519580] [network] DEBUG: ℹ️ GetProductEntitlementMappingOperation: Finished
2023-08-05 14:53:09.537852+0100 app[38764:3519580] [network] DEBUG: ℹ️ Serial request done: GET product_entitlement_mapping, 0 requests left in the queue
2023-08-05 14:53:09.537920+0100 app[38764:3519556] [network] DEBUG: ℹ️ GetCustomerInfoOperation: Started
2023-08-05 14:53:09.538031+0100 app[38764:3519556] [network] DEBUG: ℹ️ There are no requests currently running, starting request GET subscribers/$RCAnonymousID%3Ad7dc3a3dcdaa4943a73fbe7a835def4a
2023-08-05 14:53:09.539780+0100 app[38764:3519556] [network] DEBUG: ℹ️ API request started: GET /v1/subscribers/$RCAnonymousID:d7dc3a3dcdaa4943a73fbe7a835def4a
2023-08-05 14:53:09.819788+0100 app[38764:3519554] [network] DEBUG: ℹ️ API request completed: GET /v1/subscribers/$RCAnonymousID:d7dc3a3dcdaa4943a73fbe7a835def4a (304)
2023-08-05 14:53:09.824630+0100 app[38764:3519554] [customer] DEBUG: ℹ️ Sending latest CustomerInfo to delegate.
2023-08-05 14:53:09.824688+0100 app[38764:3519554] [customer] DEBUG: 😻 CustomerInfo updated from network.
2023-08-05 14:53:09.824741+0100 app[38764:3519554] [network] DEBUG: ℹ️ GetCustomerInfoOperation: Finished
2023-08-05 14:53:09.824750+0100 app[38764:3518830] [eligibility] DEBUG: ℹ️ Detected active subscriptions changed. Clearing trial or intro eligibility cache.
2023-08-05 14:53:09.824806+0100 app[38764:3518830] [offline_entitlements] DEBUG: ℹ️ PurchasedProductsFetcher: invalidating cache
2023-08-05 14:53:09.824816+0100 app[38764:3519554] [network] DEBUG: ℹ️ Serial request done: GET subscribers/$RCAnonymousID%3Ad7dc3a3dcdaa4943a73fbe7a835def4a, 0 requests left in the queue
2023-08-05 14:53:18.227277+0100 app[38764:3519554] [store_kit] DEBUG: 😻 Store products request received response
2023-08-05 14:53:18.227277+0100 app[38764:3519580] [store_kit] DEBUG: 😻 Store products request finished
2023-08-05 14:53:18.228944+0100 app[38764:3519554] [offering] WARN: ⚠️ There's a problem with your configuration. No packages could be found for offering with  identifier one_month. This could be due to Products not being configured correctly in the RevenueCat dashboard, App Store Connect (or the StoreKit Configuration file if one is being used). 
To configure products, follow the instructions in https://rev.cat/how-to-configure-offerings. 
More information: https://rev.cat/why-are-offerings-empty
2023-08-05 14:53:18.229063+0100 app[38764:3519554] [offering] WARN: ⚠️ There's a problem with your configuration. No packages could be found for offering with  identifier three_month. This could be due to Products not being configured correctly in the RevenueCat dashboard, App Store Connect (or the StoreKit Configuration file if one is being used). 
To configure products, follow the instructions in https://rev.cat/how-to-configure-offerings. 
More information: https://rev.cat/why-are-offerings-empty
2023-08-05 14:53:18.229129+0100 app[38764:3519554] [offering] WARN: ⚠️ There's a problem with your configuration. No packages could be found for offering with  identifier sex_month. This could be due to Products not being configured correctly in the RevenueCat dashboard, App Store Connect (or the StoreKit Configuration file if one is being used). 
To configure products, follow the instructions in https://rev.cat/how-to-configure-offerings. 
More information: https://rev.cat/why-are-offerings-empty
2023-08-05 14:53:18.240949+0100 app[38764:3519554] [offering] WARN: ⚠️ There's a problem with your configuration. No packages could be found for offering with  identifier test. This could be due to Products not being configured correctly in the RevenueCat dashboard, App Store Connect (or the StoreKit Configuration file if one is being used). 
To configure products, follow the instructions in https://rev.cat/how-to-configure-offerings. 
More information: https://rev.cat/why-are-offerings-empty
2023-08-05 14:53:18.241019+0100 app[38764:3519554] [offering] WARN: ⚠️ There's a problem with your configuration. No packages could be found for offering with  identifier app_all_subs. This could be due to Products not being configured correctly in the RevenueCat dashboard, App Store Connect (or the StoreKit Configuration file if one is being used). 
To configure products, follow the instructions in https://rev.cat/how-to-configure-offerings. 
More information: https://rev.cat/why-are-offerings-empty
2023-08-05 14:53:18.241305+0100 app[38764:3519554] [offering] DEBUG: 😻 Offerings updated from network.
2023-08-05 14:53:40.231571+0100 app[38764:3520223] [tcp] tcp_input [C1.1:3] flags=[R] seq=373139170, ack=0, win=0 state=LAST_ACK rcv_nxt=373139170, snd_una=2780100351

This is the full console that is related to revenuecat

mirkancal commented 1 year ago

If I run the app for an IOS phone the offerings are ok, but when I run it for macOS, I get this error for all my offerings.

Is this a universal app, with a shared configuration on App Store Connect and the RevenueCat dashboard?

That question saved my day. When I enabled macos for project, I had similar but different bundle id, that's why I created different appstore app on revenuecat, and add same products there but caused problems on fetching products.

Vrushti24 commented 5 months ago

is this issue solved ? Do you have any solution for the above problem ?

vegaro commented 5 months ago

Hi @Vrushti24 which issue are you facing exactly? There are multiple issues being talked about in this conversation. Thanks!

Vrushti24 commented 5 months ago

Hi @Vrushti24 which issue are you facing exactly? There are multiple issues being talked about in this conversation. Thanks!

hey my issue was solved for products not being fetched in MacOS thank you