No receipt generated for sandbox App Store app

I'm trying to launch an app generated with Xcode that should get a sandbox receipt in 10.12.4 Beta (16E189a). The app checks whether it has a receipt and if it doesn't, it exits with 173 so that macOS can show the App Store login dialog and generate a receipt. This used to work.


However, on said beta, when I click on the freshly built app the icon appears in the dock for a very short time, then disappears… and nothing else happens. No dialog. No receipt.


In the console log, I can see this:


default 11:08:20.480048 +0100 storeassetd MacOS error: -67050
default 11:08:20.480695 +0100 storeassetd MacOS error: -67050
default 11:08:20.480934 +0100 storeassetd ISCodeSignatureOperation: isDeveloperSigned = 0
default 11:08:20.485024 +0100 storeassetd MacOS error: -67050
default 11:08:20.485099 +0100 storeassetd MacOS error: -67050
default 11:08:20.485292 +0100 storeassetd ISCodeSignatureOperation: isAppleSigned = 0
default 11:08:20.485475 +0100 storeassetd Unsigned app (/path/to/test.app).
default 11:08:20.485797 +0100 storelegacy StoreLegacy: Failed to perform in-line receipt renewal for application at path /path/to/test.app: '(null)'


The "codesign" app says the signature is valid. So, how do I get macOS to produce a receipt for my app?


(Sidenote: it seems the Debug menu from the "App Store.app" is gone… not happy about that.)

No receipt generated for sandbox App Store app
 
 
Q