In-App Purchases 路 In-App Purchase Pipeline | raywenderlich.com


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/1304447-in-app-purchases/lessons/3

Hi
I鈥檝e successfully compiled and modified to suit my needs the 鈥楻eceipt Validation鈥 tutorial. However, when I try to migrate it to my 鈥榬eal鈥 project, I get loads of compile errors. I鈥檝e copied everything over (as far as I can tell) - I鈥檝e added all the correct headers to the Bridging Header, and have imported and included the StoreKit framework. I think that Xcode isn鈥檛 finding some of the classes (particularly in IAPReceipt.swift and ASN1Helpers.swift. Are there any specific build settings that I need to worry about? It鈥檚 strange, because my 鈥榤odified鈥 project builds fine鈥 Any help would be much appreciated (I realise I may have posted this in the wrong place - I apologise if this is the case!) I鈥檓 happy to provide my complete project if you think you can help鈥

Best Regards

John Milner

That鈥檚 a little beyond the scope of this tutorial. For security purposes, you should be using remote validation. The purpose of the project was to demonstrate local validation, not be an actual solution.

That said, I took the project and related files from the following tutorial: https://www.raywenderlich.com/9257-in-app-purchases-receipt-validation-tutorial