kishikawakatsumi / UICKeyChainStore

UICKeyChainStore is a simple wrapper for Keychain on iOS, watchOS, tvOS and macOS. Makes using Keychain APIs as easy as NSUserDefaults.
http://kishikawakatsumi.com
MIT License
3.09k stars 382 forks source link

-remove method(s) on OSX not working #18

Open skram opened 10 years ago

skram commented 10 years ago

Using any of the -remove methods on OSX seem to have /no/ effect.

Example code:

UICKeyChainStore *store = [UICKeyChainStore keychainStore];
[store removeAllItems];
[store synchronize];

After relaunching the application, key's still exist. Any ideas?..

OSX 10.9.5

rachidfinge commented 10 years ago

I thought I had the exact same issue on Mac OS X Yosemite. Turns out: if you create a keychain item from your app while running in Xcode, you will not be able to delete that item when you run your app standalone (with different code signing assets). That's the trap I fell into. No bug in UICKeyChainStore, fortunately.