I'm developing across two Macs: one Apple Silicon and an Intel laptop (used for performance and compatibility testing).
I've been testing my StoreKit2 implementation, and have come across a couple of issues.
-
From time to time something appears to become corrupted, and StoreKit2 says it has a 'connection' issue. Deleting the folder
com.apple.storekitagent
, which a sub folderOctane
, restarting the machine appears to fix this. -
The second issue I cannot appear to resolve. I have needed to change the App Bundle ID. I did this whilst developing on the M2 Mac without problem. But now when I try and run back on the Intel Mac I am getting a set of unfinished transactions which I can either process, nor delete (they are not appearing in Xcode's StoreKit debug window. I've tried deleting the folder
com.apple.storekitagent
, and restarting the machine, but to no avail.
Note if I reset back to my original App Bundle ID then all works as before.
Here is a sample of errors I am receiving:
Error finishing transaction 110: Error Domain=ASDErrorDomain Code=500 "Unhandled exception" UserInfo={NSUnderlyingError=0x600001863cf0 {Error Domain=AMSErrorDomain Code=301 "Invalid Status Code" UserInfo={NSLocalizedDescription=Invalid Status Code, AMSURL=http://localhost:49242/WebObjects/MZFinance.woa/wa/inAppTransactionDone?REDACTED, AMSStatusCode=404, AMSServerPayload={
error = "Transaction not found";
}, NSLocalizedFailureReason=The response has an invalid status code}}, storefront-country-code=USA, client-environment-type=XcodeTest(file:///Users/peggers/Library/Caches/com.apple.storekitagent/Octane/com.bristolbaycodefactory.photo-organista/), AMSServerErrorCode=0, NSLocalizedFailureReason=An unknown error occurred, NSLocalizedDescription=Unhandled exception}
Any further ideas on how to reset or solve this issue?