The existing iPhone/iPad app contains non-consumable in-app purchases, which have been tested and are live in production. No complaints from iPhone/iPad users.
I'm having trouble testing hosted content on the macOS version. When I try to download a hosted IAP, the progress continues up to 80%, at which point it stops. If I launch the app from the command line, I can see an error message as "The installation could not be started" and, looking at the path of the downloaded archive, it looks complete. So, if I can trust the log from running from the command line, I suspect there may be some permissions issue in testing macOS hosted content downloads.
Here is my current workflow,
sign out of App Store and iCloud on my development machine.
clean build folder and build for "Any Mac" (though I've also tried "My Mac" with no difference; build scheme checks all boxes: analyze, test, run, profile, archive).
find build in the "Products" folder in the left rail. click on "Show in Finder".
Launch from Finder.
Purchase IAP using sandbox account (tested with an older account used for the iPhone/iPad testing and a new one created after I started testing the macOS version; the "Environment: Sandbox" text appears when I make the purchase).
Download starts and goes up to 80%, at which point the SKDownload.state is .failed.
I also uploaded a macOS build to App Store in the process, though I obviously have not released it.
XCode Version 12.2 (12B45b)
macOS 10.15.7 (19H2)
Any help would be appreciated.
Thanks.