TrustKit icon indicating copy to clipboard operation
TrustKit copied to clipboard

Random crash - TrustKit was not initialized

Open TomBentz opened this issue 1 year ago • 0 comments

Hi,

I have a published app using TrustKit. Sometimes I received crash logs from Crashlytics

Fatal Exception: TrustKit was not initialized TrustKit must be initialized using +initSharedInstanceWithConfiguration: prior to accessing sharedInstance

I configure TrustKit using the plist key TSKConfiguration, and only use TrustKit.sharedInstance().pinningValidator.handle(challenge, completionHandler: completionHandler) on every network call.

How can this crash only occurs sometimes and 98% of the users don't have it ?

TomBentz avatar May 29 '23 14:05 TomBentz