andrewcbancroft / SwiftyLocalReceiptValidator

An implementation of local receipt validation logic for iOS in Swift
MIT License
286 stars 32 forks source link

ReceiptValidationError error 3 #3

Closed lunento closed 6 years ago

lunento commented 7 years ago

After your great tutorial and a few modifications I am now getting:

ReceiptValidationError error 3

Yet, when I use the "fetchReceipt()" you also provided, it shows that YES THE RECEIPT is found.

Please help.

TheRebelMan commented 6 years ago

This error corresponds to "case appleRootCertificateNotFound" You need to download the Apple Root Certificate: https://www.apple.com/certificateauthority/ Its the first one of the top left side. Drag and drop it into your target project, and make sure to tick "Target Membership >> Yourproject"

andrewcbancroft commented 6 years ago

@lunento -- Did @TheRebelMan's solution work for you?