Search code examples
ioskeychainmobile-development

How do we erase keychain data in TestFlight apps?


I’m using TestFlight to test my build. I want to erase keychain data to test some behavior. How is this possible?


Solution

  • If you do a secure wipe of the device or reset iOS, then you get clean keychain. However, the best way is to implement erasing you keychain variables in code.