I have a Mac App that I didn't touch for a while. Now, it appears that something around running apps with Mac App Store integrations has changed since macOS Catalina.
When I launch the App from XCode it crashes with exit code 173 and logs as below, followed by a prompt to login with my Apple ID, which I tried both my lives as sandbox Apple ID.
Regardless of which Apple ID I am signing in with, it ends with an error: «"Appname" is damaged and can't be opened.»
Logs
Could not check for receipt presence for some reason... Error Domain=NSCocoaErrorDomain Code=260 "The file “receipt” couldn’t be opened because there is no such file." UserInfo={NSURL=Contents/_MASReceipt/receipt -- file:///Users/******/Library/Developer/Xcode/DerivedData/*********-egqjyklohxjyjqcvtxjmwzdxvxhv/Build/Products/Debug/**********.app/, NSFilePath=/Users/******/Library/Developer/Xcode/DerivedData/*********-egqjyklohxjyjqcvtxjmwzdxvxhv/Build/Products/Debug/**********.app/Contents/_MASReceipt/receipt, NSUnderlyingError=0x600000c86310 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
2021-01-08 13:23:07.867823+0100 *********s[87637:4910885] Failed fetch receipt with error: The file “receipt” couldn’t be opened because there is no such file.
Could not check for receipt presence for some reason... Error Domain=NSCocoaErrorDomain Code=260 "The file “receipt” couldn’t be opened because there is no such file." UserInfo={NSURL=Contents/_MASReceipt/receipt -- file:///Users/******/Library/Developer/Xcode/DerivedData/*********-egqjyklohxjyjqcvtxjmwzdxvxhv/Build/Products/Debug/**********.app/, NSFilePath=/Users/******/Library/Developer/Xcode/DerivedData/*********-egqjyklohxjyjqcvtxjmwzdxvxhv/Build/Products/Debug/**********.app/Contents/_MASReceipt/receipt, NSUnderlyingError=0x600000c8dd40 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
2021-01-08 13:23:07.869011+0100 *********s[87637:4910885] Failed fetch receipt with error: The file “receipt” couldn’t be opened because there is no such file.
Could not reach receipt URL: Optional(Error Domain=NSCocoaErrorDomain Code=260 "The file “receipt” couldn’t be opened because there is no such file." UserInfo={NSURL=Contents/_MASReceipt/receipt -- file:///Users/******/Library/Developer/Xcode/DerivedData/*********-egqjyklohxjyjqcvtxjmwzdxvxhv/Build/Products/Debug/**********.app/, NSFilePath=/Users/******/Library/Developer/Xcode/DerivedData/*********-egqjyklohxjyjqcvtxjmwzdxvxhv/Build/Products/Debug/**********.app/Contents/_MASReceipt/receipt, NSUnderlyingError=0x600000c8ddd0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}})
2021-01-08 13:23:07.882384+0100 *********s[87637:4910885] No receipt found! Will exit with 173 to let macOS handle renewing a receipt from the App Store.
Setup
- macOS 10.15.7 (19H114)
- XCode 12.3 (12C33) // also tried it with XCode 11.7 → same same
- App signed with valid development certificate

