How to get the original_application_version (the first purchased version number) out of iOS Receipt in iOS 11?
问题 I have a paid iOS App. I need to get the original_application_version number (the first version purchased by the user) from the Apple AppStore Receipt. To get the receipt, when my app loads, I use checkReceiptFromAppStore() function: func checkReceiptFromAppStore() { let receipt = self.getReceipt() print("receipt Data is: \(receipt)") // prints this: receipt Data is: Optional(5141 bytes) } getReceipt() function is the following: func getReceipt() -> Data? { if Bundle.main.appStoreReceiptURL !