문제

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?

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top