I'm developing an application with In-app purchase. After launched, the application will check if receipts exist or not, and will call "exit 173" if receipts not exist, then macos will fetch receipts for application and re-launch it.
When testing the application after a new installation(which means no receipts installed), first i found the application quit quickly after launching(this means exit 173 worked) and then i got error message says "application is damaged, remove it and download again from app store". Just a week ago, the same test was worked, and app store asked user account and password, and launched the application again. But now i can not continue the test.
the following is console log: 17:43:55.505166+0800 storeuid Fetching missing receipt for sandbox app /Applications/Right PDF.app 17:43:55.506797+0800 storeuid <StoreKitClient: 0x7fdc4d75c500>: Using active account. Sandbox: 1, receipt exists: NO, receipt is stub: NO 17:43:55.509601+0800 commerce storeuid[793] starting request app-receipt-create 17:43:55.686252+0800 commerce <CKStoreRequest: 0x7fba2910b830> https://mzstorekit-sb.itunes.apple.com/inApps/v1/receipts/createAppReceipt 17:43:56.031342+0800 commerce StoreSession: StatusCode: 200; ; Environment: (null); URL: https://mzstorekit-sb.itunes.apple.com/inApps/v1/receipts/createAppReceipt 17:43:56.032185+0800 storeuid <ReceiptRefreshRequest: 0x7fdc4e23b660>: Error fetching receipt for com.zeon.RightPDF - Error Domain=com.apple.commerce.server Code=1001 "(null)" 17:43:56.032480+0800 storelegacy StoreLegacy: Failed to perform in-line receipt renewal for application at path /Applications/Right PDF.app : 'Error Domain=com.apple.commerce.server Code=1001 "(null)"'
Does anyone konw what the meaning of the error code:"com.apple.commerce.server Code=1001" or how to resolve it? Thanks for any help.