Hey all,
I'm following the instructions in https://developer.apple.com/documentation/xcode/setting-up-storekit-testing-in-xcode to set up mock in-app purchases in my project.
In the section Prepare to Validate Receipts in the Test Environment
it says to create a StoreKit certificate and mentions using conditional compilation to use that certificate:
#if DEBUG
let certificate = "StoreKitTestCertificate"
#else
let certificate = "AppleIncRootCertificate"
#endif
Where would I indicate to use that certificate? I don't think it's picking it up, since
my calls to Bundle.main.appStoreReceiptURL
are returning nil when I'm debugging.