//获取小票
NSURL *receiptURL = [[NSBundle mainBundle] appStoreReceiptURL];
NSData *receiptData = [NSData dataWithContentsOfURL:receiptURL];
//post 上传给后台
NSDictionary *dict = @{@"receipt-data": [receiptData base64EncodedStringWithOptions:0]};
//上传dict 程序闪退 控制台打印 ‘Terminated due to memory issue’
[request postRequest:dic block:^(NSDictionary* dic){
}];
求解答。