Cannot test in app purchases on catalina, app reported as damaged, no receipt for sandbox user

On two macs with 10.15.2 (19C57), we can't test an app for in app purchases


# Steps

Build App in Xcode
Launch App from Finder

It launches, and quickly closes

After a slight delay the sandbox Apple ID is requested (we expect this, as it needs to fetch a sandbox receipt)

Enter a sandbox user Apple ID


# Expected (it used to work)

The os fetches a sandbox receipt for the app

The app launches


# Actual

The System dialog comes claiming the app is damaged and needs to be deleted and redownloaded from the App store

When launching the app again, gatekeeper "verifies" the app and comes to the same conclusion.

In the app, there is no MASReceipt
Any advice?

When I remove receipt validation (leading to exit(173) without receipt) the app launches, but when I do a refresh receipts call,
I get a SKErrorDomain, code 0 Operation could not be completed error.
In the console app I can find that sometimes a previously used sandbox account no longer used account is mentioned.
Any ideas how to get rid of that?
When I attempt a purchase, it doesn't ask for a new login, and fails with "You are not authorized to make purchases of this InApp in Sandbox at this time."

Same here. Updated from Mojave to Catalina 10.15.2 and now when trying to refresh a receipt I get Error Domain=SKErrorDomain Code=0 "(null) error.

Cannot test in app purchases on catalina, app reported as damaged, no receipt for sandbox user
 
 
Q