I'm not so experienced to know what that code does, but it helped me. And now once again I can run my app on device. Thank you Nate.
over 6 years ago
The code Nate posted clears out the keychain (including the active user). Calling [KCSUser clearSavedCredentials] at the top of the program should do the same thing. Also kSecClassGenericPassword is sufficient since that is all that is stored by KinveyKit.
about 6 years ago
Now once again this error happened on my another device. How to stop this error for happening? What if this happens to user that bought the app from the store?