We did RevenueCat Flutter SDK setup to start selling IAPs in our hybrid application, but we're having a lot of problems when testing the purchases in the iOS Simulators. We already read the discussions across this STORE_PROBLEM issue #1, #2, and many others, but we are trying to debug it deeper because we strongly believe that a misleading configuration exists, but we can't say if it's with RevenueCat Flutter's SDK or with Flutter itself.
We found out that the error disappear when running the Flutter iOS app (ios/Runner.xcworkspace) directly through XCode, not through `flutter run ….` CLI. After the build is made through XCode, further builds made using `flutter run ...` work as expected. It seems that when trying to run using `flutter run` first, some files are not being copied or configuration is not being correctly made, which causes this `STORE_PROBLEM` error to happen. We couldn't find this difference between XCode and Flutter builds, but we're still investigating what can be possible happening.
This behavior is extremely bizarre and we're trying to figure out if this problem is with Flutter build system or with RevenueCat SDK. It seems to be with Flutter, but we are sharing here in the community our findings and keep anyone who's struggling with this issue updated with our findings and possible workarounds.
We were suspecting that the `Configuration.storekit` or the certificate were not being copied to the generated `.ipa` when using `flutter run`, but the files are correctly copied and attached to the resulting IPA. It has been pretty difficult to find out what's happening, but we are still searching for alternatives.