I have a SwiftUI app that has iOS and macOS versions. They share the same code except for the the initial OS specific app view as well as user settings view.
All 5 of my in-app purchases are consumables There are no subscription items.
The iOS version of my apps works fine and I have been able to successfully make sandbox purchases. It populates the various purchases on the “purchase screen” and everything works as expected.
The problem is the Mac app. It will not load and populate any purchases. This has me stumped because the code is the exact same code as used in the iOS version. When I run the iOS version of the app, I see no errors at all in the debug window. But when I run the Mac version, I get the following error every few seconds.
2023-07-03 15:10:42.801947-0700 TurboAI[81346:6961607] [Purchases] - ERROR: 🍎‼️ Store products request failed! Error: Error Domain=SKErrorDomain Code=0 "An unknown error occurred" UserInfo={NSLocalizedDescription=An unknown error occurred, NSUnderlyingError=0x600003e4fc90 {Error Domain=ASDErrorDomain Code=500 "(null)" UserInfo={NSUnderlyingError=0x600003e4e790 {Error Domain=AMSErrorDomain Code=203 "Bag Load Failed" UserInfo={NSUnderlyingError=0x600003e4e520 {Error Domain=AMSErrorDomain Code=203 "Bag Load Failed" UserInfo=0x600002513900 (not displayed)}, NSLocalizedFailureReason=Unable to retrieve p2-product-offers-batch-limit because we failed to load the bag., NSLocalizedDescription=Bag Load Failed}}}}}
At one point, it DID populate the purchases but then it stopped. I have no idea why. Any ideas would certainly be appreciated.