mirror of
https://github.com/mssun/passforios.git
synced 2026-10-02 15:58:45 +02:00
ObjectivePGP raises an Objective-C exception when reading an armored block without a body. Swift cannot catch it, so the app terminated as soon as a key ID was requested, e.g. when opening the settings screen. As the keys live in the keychain, they survive reinstalling the app and the crash persisted. Route the calls into ObjectivePGP through an Objective-C exception catcher which turns exceptions into regular errors. Additionally, offer the removal of PGP keys whenever keys are stored, not only when a key source is set. The key source is gone after a reinstall while the keys are not, which left no way to get rid of unusable keys. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>