Merge pull request #2 from marcelo-schroeder/master

Load `AppleIncRootCertificate.cer` file from the pod's bundle not from the main one.
This commit is contained in:
Pavel Tikhoneko
2017-01-13 01:00:18 -08:00
committed by GitHub
@@ -61,7 +61,7 @@ public class InAppReceiptManager
try validatePKCS7(receiptPKCS7)
}
guard let appleRootURL = Bundle.main.url(forResource: "AppleIncRootCertificate", withExtension: "cer") else
guard let appleRootURL = Bundle.init(for: type(of: self)).url(forResource: "AppleIncRootCertificate", withExtension: "cer") else
{
throw ReceiptValidatorError.appleIncRootCertificateNotFound
}