{"action":"created","issue":{"url":"https://api.github.com/repos/auth0/SimpleKeychain/issues/10","labels_url":"https://api.github.com/repos/auth0/SimpleKeychain/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/auth0/SimpleKeychain/issues/10/comments","events_url":"https://api.github.com/repos/auth0/SimpleKeychain/issues/10/events","html_url":"https://github.com/auth0/SimpleKeychain/issues/10","id":57727254,"number":10,"title":"TouchID does not show up","user":{"login":"marbetschar","id":392542,"avatar_url":"https://avatars.githubusercontent.com/u/392542?v=3","gravatar_id":"","url":"https://api.github.com/users/marbetschar","html_url":"https://github.com/marbetschar","followers_url":"https://api.github.com/users/marbetschar/followers","following_url":"https://api.github.com/users/marbetschar/following{/other_user}","gists_url":"https://api.github.com/users/marbetschar/gists{/gist_id}","starred_url":"https://api.github.com/users/marbetschar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marbetschar/subscriptions","organizations_url":"https://api.github.com/users/marbetschar/orgs","repos_url":"https://api.github.com/users/marbetschar/repos","events_url":"https://api.github.com/users/marbetschar/events{/privacy}","received_events_url":"https://api.github.com/users/marbetschar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-15T11:30:11Z","updated_at":"2015-02-18T13:28:26Z","closed_at":null,"body":"I've tried to implement A0SimpleKeychain in my project - but for some reason the TouchID does not show up. It seems like I'm not able to store anything in the Keychain - as the id changes every time I execute the app.\r\n\r\nHere's my code:\r\n\r\n    var error: NSError?\r\n    let message = \"Please login\"\r\n    let keychain = A0SimpleKeychain()\r\n    var defaultAccount = keychain.stringForKey(\"default.account\", promptMessage: message)\r\n\r\n    if defaultAccount == nil {\r\n        let uuid = NSUUID().UUIDString.stringByReplacingOccurrencesOfString(\"-\", withString: \"\", options: nil, range: nil).lowercaseString\r\n\t\t\t\r\n        defaultAccount = NSString(string: uuid)\r\n\t\t\t\r\n        let keychain = A0SimpleKeychain()\r\n        keychain.useAccessControl = true\r\n        keychain.defaultAccessiblity = .WhenPasscodeSetThisDeviceOnly\r\n        keychain.setString(defaultAccount, forKey: \"default.account\")\r\n    }\r\n\r\n    println(split( defaultAccount ){ $0 == \"$\" })\r\n\r\nWhat I'm doing wrong?"},"comment":{"url":"https://api.github.com/repos/auth0/SimpleKeychain/issues/comments/74863288","html_url":"https://github.com/auth0/SimpleKeychain/issues/10#issuecomment-74863288","issue_url":"https://api.github.com/repos/auth0/SimpleKeychain/issues/10","id":74863288,"user":{"login":"hzalaz","id":895992,"avatar_url":"https://avatars.githubusercontent.com/u/895992?v=3","gravatar_id":"","url":"https://api.github.com/users/hzalaz","html_url":"https://github.com/hzalaz","followers_url":"https://api.github.com/users/hzalaz/followers","following_url":"https://api.github.com/users/hzalaz/following{/other_user}","gists_url":"https://api.github.com/users/hzalaz/gists{/gist_id}","starred_url":"https://api.github.com/users/hzalaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hzalaz/subscriptions","organizations_url":"https://api.github.com/users/hzalaz/orgs","repos_url":"https://api.github.com/users/hzalaz/repos","events_url":"https://api.github.com/users/hzalaz/events{/privacy}","received_events_url":"https://api.github.com/users/hzalaz/received_events","type":"User","site_admin":false},"created_at":"2015-02-18T13:28:26Z","updated_at":"2015-02-18T13:28:26Z","body":"Hi @marbetschar,\r\n\r\nDid you try setting `useAccessControl`to `true` and `defaultAccessiblity` before reading the value from the keychain?\r\n\r\n```swift\r\nvar error: NSError?\r\nlet message = \"Please login\"\r\n\r\nlet keychain = A0SimpleKeychain()\r\nkeychain.useAccessControl = true\r\nkeychain.defaultAccessiblity = .WhenPasscodeSetThisDeviceOnly\r\n\r\nvar defaultAccount = keychain.stringForKey(\"default.account\", promptMessage: message)\r\n\r\nif defaultAccount == nil {\r\n    let uuid = NSUUID().UUIDString.stringByReplacingOccurrencesOfString(\"-\", withString: \"\", options: nil, range: nil).lowercaseString\r\n    defaultAccount = NSString(string: uuid)\r\n    keychain.setString(defaultAccount, forKey: \"default.account\")\r\n}\r\n\r\nprintln(split( defaultAccount ){ $0 == \"$\" })\r\n```\r\n"}}