I am running an iOS application through a debugger on my iPhone 5s. I use keychain to store a password (I use Apple's KeychainItemWrapper example to store and retrieve keychain items). Approximately 99.99% of the time, searching for a keychain works perfectly. However, there were two cases when my application could not get the password. For example, once my phone was under pressure in my memory, and I had to restart the phone and restart the application. After restarting the application, my application can no longer retrieve the password from the key fob. I wonder if this password loss was caused by this memory pressure? What other iOS cases clean up keychain data? Is there any way to introduce this?
source
share