Just to make sure that exit(173) is no longer working I added this code before I called my function verifyWithStoreKit();
void getReceiptData(void)
{
NSError *theError = nil;
NSData *receiptData;
NSURL *appStoreReceiptURL;
NSBundle *mainBundle = [NSBundle mainBundle];
appStoreReceiptURL = [mainBundle appStoreReceiptURL];
if((receiptData = [NSData dataWithContentsOfURL: appStoreReceiptURL options: NSDataReadingMappedAlways error: &theError]) == nil)
exit(173);
}
The first time you call exit(173), XCode will post an alert saying that exit(173) is no longer available but it actually WILL get a receipt. But then verification will fail to validate the receipt.
This is happening with a built version of the app that worked fine for a long time as well because it had a receipt. This is worrying because this could happen to my users.
Is there now no way to get a receipt to use while testing your application?
Topic:
App & System Services
SubTopic:
StoreKit
Tags: