Domanda

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?

È stato utile?

Soluzione

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top