Random crash - TrustKit was not initialized
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- ios, objective-c
- Domain
- mobile-dev, security
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.
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 ?
- Dominant language
- Objective-C
- Stars
- 2.1k
- Forks
- 381
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
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.
More from datatheorem/TrustKit
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
datatheorem/TrustKit#360 ·
-
enhancement help wanted
Difficulty 4/5 3-5 days Newbie friendliness 35/100
datatheorem/TrustKit#341 · 1 comment ·
-
enhancement
Difficulty 3/5 1-2 days Newbie friendliness 48/100
datatheorem/TrustKit#340 · 2 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
datatheorem/TrustKit#333 · 2 comments · 1 reaction ·
-
Difficulty 4/5 3-5 days Newbie friendliness 28/100
datatheorem/TrustKit#330 · 1 comment ·
All issues in datatheorem/TrustKit
Similar issues
-
iOS: hidden scale bar invalidates its intrinsic content size on every layout pass of MLNMapViewOpen
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
maplibre/maplibre-native#4723 ·
Maintainers usually reply within 1 day
-
agent-work needs-manual-intervention
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Provenance-Emu/Provenance#3726 · 4 comments ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
organicmaps/organicmaps#13712 · 3 comments ·
Maintainers usually reply within 2 days
-
cl: has_flags() mistakes warning C5072 for an unsupported flagPossibly taken A pull request linked to this issue is open or already merged. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
xmake-io/xmake#7822 · 3 comments ·
Maintainers usually reply within 2 days
-
platform-ios
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
googleads/googleads-mobile-flutter#1512 · 1 comment · 1 assignee ·