How to get iOS appStoreReceiptURL into Base 64 Encoded String?
问题 I want to use appStoreReceiptURL to see which version of the app someone purchased. How can I get this into a string? I'm testing this by downloading the app from the store, then running a new version of the app from Xcode. Here is what I've tried: NSURL *receiptUrl = [[NSBundle mainBundle] appStoreReceiptURL]; NSLog(@"receiptUrl %@",[receiptUrl path]); if ([[NSFileManager defaultManager] fileExistsAtPath:[receiptUrl path]]) { NSLog(@"exists"); NSError *error; NSString *receiptString = [