gohypergiant / BPXLUUIDHandler

214 stars 37 forks source link

Default access attribute of Keychain #5

Open Relliux opened 12 years ago

Relliux commented 12 years ago

Some users of our app are seeing crashes with the UUID library when there is a lock code on their phone. If the phone was locked the keychain system was returning error -25308.

The default access attribute for the kechain system used to be kSecAttrAccessibleAlways, but now it is iskSecAttrAccessibleWhenUnlocked; so we had to add a specific kSecAttrAccessible attribute on the keychain query to fix this problem.

Have seen a similar issue? If yes, did you follow a different approach? Thank you.