TrustKit crash only in production environment
TrustKit giving crashes in my production application, Please find the crash log attached
Thread 7 name:
Thread 7 Crashed:
0 ??? 0x0000000000000000 0x0 + 0
1 TrustKit 0x0000000102e3e114 verifyPublicKeyPin + 328 (ssl_pin_verifier.m:69)
2 TrustKit 0x0000000102e42080 -[TSKPinningValidator evaluateTrust:forHostname:] + 520 (TSKPinningValidator.m:126)
3 TrustKit 0x0000000102e42378 -[TSKPinningValidator handleChallenge:completionHandler:] + 228 (TSKPinningValidator.m:202)
4 myApp 0x0000000100cceacc specialized CustomSessionDelegate.urlSession(:task:didReceive:completionHandler:) + 256 (RestClient.swift:218)
5 myApp 0x0000000100cccb00 specialized CustomSessionDelegate.urlSession(:task:didReceive:completionHandler:) + 12 (
This looks like the bug that was fixed in this PR: https://github.com/datatheorem/TrustKit/commit/11da1c781e168732e6b7d1480b4615dceac44af4
Are you using TK v3.0.3?