我正在使用 RMStore 的应用收据来验证非续订订阅。当我尝试将此收据发送到 iCloud 时,我收到一个错误:* -[NSUbiquitousKeyValueStore setObject:forKey:]: Attempt to insert non-property value '' of class 'RMAppReceipt'。
这是代码:
RMAppReceipt *receipt = [RMAppReceipt bundleReceipt];
NSUbiquitousKeyValueStore *storage = [NSUbiquitousKeyValueStore defaultStore];
[storage setObject:receipt forKey:@"iReceipt"];
有任何想法吗?