datatheorem / datatheorem/TrustKit
Random crash - TrustKit was not initialized
Nobody has claimed this yet.
- Dominant language
- Objective-C
- Stars
- 2.1k
- Forks
- 381
- PR merge metrics
- No merged PRs in 30d
Description
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 ?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the TrustKit.sharedInstance() access and the plist TSKConfiguration mentioned in the report, then trace when TrustKit initialization is expected to occur. There are no source files or tests named in the issue; done means identifying a reproducible explanation for the intermittent crash and documenting or correcting the required initialization behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, objective-c
- Domain
- mobile-dev, security
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100