{"action":"created","issue":{"url":"https://api.github.com/repos/granoff/Lockbox/issues/49","labels_url":"https://api.github.com/repos/granoff/Lockbox/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/granoff/Lockbox/issues/49/comments","events_url":"https://api.github.com/repos/granoff/Lockbox/issues/49/events","html_url":"https://github.com/granoff/Lockbox/issues/49","id":127288144,"number":49,"title":"Wiping Clean Keychain Keys","user":{"login":"marcelosalloum","id":1952597,"avatar_url":"https://avatars.githubusercontent.com/u/1952597?v=3","gravatar_id":"","url":"https://api.github.com/users/marcelosalloum","html_url":"https://github.com/marcelosalloum","followers_url":"https://api.github.com/users/marcelosalloum/followers","following_url":"https://api.github.com/users/marcelosalloum/following{/other_user}","gists_url":"https://api.github.com/users/marcelosalloum/gists{/gist_id}","starred_url":"https://api.github.com/users/marcelosalloum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcelosalloum/subscriptions","organizations_url":"https://api.github.com/users/marcelosalloum/orgs","repos_url":"https://api.github.com/users/marcelosalloum/repos","events_url":"https://api.github.com/users/marcelosalloum/events{/privacy}","received_events_url":"https://api.github.com/users/marcelosalloum/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-18T18:41:08Z","updated_at":"2016-01-18T19:04:02Z","closed_at":null,"body":"Hey guys,\r\n\r\nMy app started prompting an error message for duplicate keys in the keychain [error -25299]:\r\n\r\n```\r\nCKLs-iPhone-5S securityd[78] : securityd_xpc_dictionary_handler MyApp[2571] add The operation couldn’t be completed. (OSStatus error -25299 - duplicate item O,genp,E99372E2,L,ck,XYZ6M5UYJ9.com.mydomain.myapp,0,acct,svce,v_Data,20151218165347.298588Z,2CAE5650)\r\n\r\nCKLs-iPhone-5S MyApp[2571] : SecOSStatusWith error:[-25299] The operation couldn’t be completed. (OSStatus error -25299 - Remote error : The operation couldn‚Äôt be completed. (OSStatus error -25299 - duplicate item O,genp,E99372E2,L,ck,XYZ6M5UYJ9.com.mydomain.myapp,0,acct,svce,v_Data,20151218165347.298588Z,2CAE5650))\r\n```\r\n\r\nI couldn't solve it by using the `initWithKeyPrefix` method, although overriding the `_defaultKeyPrefix` value within the `initialize` method solved the problem.\r\n\r\nI'd like to know if there is a way to manually clean all keys stored by Lockbox. I imagine this is an issue with the Keychain rather than Lockbox."},"comment":{"url":"https://api.github.com/repos/granoff/Lockbox/issues/comments/172624118","html_url":"https://github.com/granoff/Lockbox/issues/49#issuecomment-172624118","issue_url":"https://api.github.com/repos/granoff/Lockbox/issues/49","id":172624118,"user":{"login":"granoff","id":154370,"avatar_url":"https://avatars.githubusercontent.com/u/154370?v=3","gravatar_id":"","url":"https://api.github.com/users/granoff","html_url":"https://github.com/granoff","followers_url":"https://api.github.com/users/granoff/followers","following_url":"https://api.github.com/users/granoff/following{/other_user}","gists_url":"https://api.github.com/users/granoff/gists{/gist_id}","starred_url":"https://api.github.com/users/granoff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/granoff/subscriptions","organizations_url":"https://api.github.com/users/granoff/orgs","repos_url":"https://api.github.com/users/granoff/repos","events_url":"https://api.github.com/users/granoff/events{/privacy}","received_events_url":"https://api.github.com/users/granoff/received_events","type":"User","site_admin":false},"created_at":"2016-01-18T19:04:02Z","updated_at":"2016-01-18T19:04:02Z","body":"You'd have to know all the keys you stored using Lockbox to then be able to remove them all.\r\n\r\nBased on your description this does sound like more of a generic Keychain issue though."}}