Skip to content

App is persisting keychain data after uninstall #293

@jvsena42

Description

@jvsena42

The app Groups and Keychain DO persist between app uninstalls by default on iOS simulators and sometimes on physical devices. This is the likely cause:

Keychain Always Persists (from Apple Developer Forums):

  • ALL keychain accessibility attributes (kSecAttrAccessibleAfterFirstUnlock, kSecAttrAccessibleWhenUnlockedThisDeviceOnly, etc.) control when data can be accessed, NOT whether it persists
  • iOS intentionally preserves keychain data across app uninstalls for user convenience
  • The ThisDeviceOnly suffix only prevents iCloud sync, not local persistence

App Group Containers on Simulators:

  • On iOS simulators, App Group containers persist after app deletion
  • On physical devices, App Group containers are supposed to be removed, but behavior can vary

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions