Question

I am using RMStore's app receipt to verify a non-renewing subscription . When I try to send this receipt to iCloud I get an error : * -[NSUbiquitousKeyValueStore setObject:forKey:]: Attempt to insert non-property value '' of class 'RMAppReceipt'.

Here is the code :

 RMAppReceipt *receipt = [RMAppReceipt bundleReceipt];
 NSUbiquitousKeyValueStore *storage = [NSUbiquitousKeyValueStore defaultStore];
 [storage setObject:receipt forKey:@"iReceipt"];

Any ideas?

Was it helpful?

Solution

I fixed it by creating an array from properties inside and sent an array to iCloud.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top