I've been testing in app purchase using a StoreKit Configuration file in Xcode 13. This is a great feature, and makes things much easier.
However, I can't figure out how to reset the state back to initial conditions (i.e. no purchases).
On iOS simulators, I have found that the menu command Device->Erase All Content And Settings works. While it's cumbersome, it does the trick.
However, I'm testing a Mac catalyst version of my app, and have found several issues with StoreKit testing here.
On macOS Big Sur, the reliability of getting a receipt written to my app is very low. Either no _MASReceipt/receipt gets written, or it will get written to for one debugging session, and then stop updating. The only way I have found to get the receipt to update again is to reboot my system.
The other, arguably worse problem with Mac catalyst and StoreKit testing, is that I really do need to reset the state to initial conditions. In the course of my app running in the debugger with a very high renewal rate, my receipt has amassed 23,000+ transactions in it. There is no "Reset Contents and Settings" here like in the iOS simulator obviously. And the Xcode transactions editor window comes up empty, so I can't delete them there.
I'm sure there's some file/directory somewhere that I can delete, I just have no idea what it is or where to look.
Any tips would be appreciated!