Keychain: Item reported as errSecItemNotFound, but receive errSecDuplicateItem on addition
问题 This issue has been bugging me for a while, and I hope someone has insight as to the cause of this. Essentially, I have a small percentage of users who are unable to save/update items to the keychain. The problematic flow of control is as follows: We check for the existence of the item using SecItemCopyMatching . This returns the error code errSecItemNotFound We then try to add the item via SecItemAdd , but this then returns errSecDuplicateItem . Because of this, we have some users who are