Open geoffroymorel opened 6 months ago
The actual freeze was not related to this issue. But the warnings are still showing up.
@geoffroymorel Thanks for bringing this up. You can validate your receipt in any thread you want.
Personally, I just call validate
method from background thread and it works without the warning message:
let receipt = ...
DispatchQueue.global(qos: .background).async {
do {
try receipt.validate()
DispatchQueue.main.async {
// Go back to the main thread
}
} catch {
// Catch the error
}
}
I will think about adding an async validate
method and move the validation logic out of the main thread at lib level.
Hello,
I am getting the following double warnings in the console leading to an unresponsive UI for a couple seconds.
Warning is triggered when calling
SecTrustEvaluateWithError
incheckChainOfTrust()
function after callingreceipt.validate()
.I have found the following on stackoverflow.com: https://stackoverflow.com/questions/73892668/sectrustevaluatewitherror-leads-to-ui-unresponsiveness
Xcode 15.2 iPhone 15 Pro Max iOS 17.3.1