This repository has been archived by the owner on Aug 24, 2019. It is now read-only.
If item exists, update on save, rather than delete and re-add #65
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Deleting and readding the keychain was causing me some strange behavior, such as not being able to find the new values immediately. It may have been an issue with security caching entitlements, regardless this fixed it for me.
There's one bit of code at line 51 where the kSecAttrSynchronizable is removed from the query,
if you don't do this SecItemUpdate will work fine, and update the keychain attars correctly, but will still return a status of -34018.
This may clear up issues discussed in #52.