{"action":"opened","issue":{"url":"https://api.github.com/repos/lionheart/openradar-mirror/issues/6004","labels_url":"https://api.github.com/repos/lionheart/openradar-mirror/issues/6004/labels{/name}","comments_url":"https://api.github.com/repos/lionheart/openradar-mirror/issues/6004/comments","events_url":"https://api.github.com/repos/lionheart/openradar-mirror/issues/6004/events","html_url":"https://github.com/lionheart/openradar-mirror/issues/6004","id":105448863,"number":6004,"title":"22614269: iOS 9 Beta 5 Keychain shows lots of errors","user":{"login":"openradar-mirror","id":13605213,"avatar_url":"https://avatars.githubusercontent.com/u/13605213?v=3","gravatar_id":"","url":"https://api.github.com/users/openradar-mirror","html_url":"https://github.com/openradar-mirror","followers_url":"https://api.github.com/users/openradar-mirror/followers","following_url":"https://api.github.com/users/openradar-mirror/following{/other_user}","gists_url":"https://api.github.com/users/openradar-mirror/gists{/gist_id}","starred_url":"https://api.github.com/users/openradar-mirror/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openradar-mirror/subscriptions","organizations_url":"https://api.github.com/users/openradar-mirror/orgs","repos_url":"https://api.github.com/users/openradar-mirror/repos","events_url":"https://api.github.com/users/openradar-mirror/events{/privacy}","received_events_url":"https://api.github.com/users/openradar-mirror/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/lionheart/openradar-mirror/labels/reproducible:yes","name":"reproducible:yes","color":"5319e7"},{"url":"https://api.github.com/repos/lionheart/openradar-mirror/labels/status:open","name":"status:open","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/lionheart/openradar-mirror/milestones/226","html_url":"https://github.com/lionheart/openradar-mirror/milestones/iOS%209%20SDK","labels_url":"https://api.github.com/repos/lionheart/openradar-mirror/milestones/226/labels","id":1296191,"number":226,"title":"iOS 9 SDK","description":null,"creator":{"login":"openradar-mirror","id":13605213,"avatar_url":"https://avatars.githubusercontent.com/u/13605213?v=3","gravatar_id":"","url":"https://api.github.com/users/openradar-mirror","html_url":"https://github.com/openradar-mirror","followers_url":"https://api.github.com/users/openradar-mirror/followers","following_url":"https://api.github.com/users/openradar-mirror/following{/other_user}","gists_url":"https://api.github.com/users/openradar-mirror/gists{/gist_id}","starred_url":"https://api.github.com/users/openradar-mirror/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openradar-mirror/subscriptions","organizations_url":"https://api.github.com/users/openradar-mirror/orgs","repos_url":"https://api.github.com/users/openradar-mirror/repos","events_url":"https://api.github.com/users/openradar-mirror/events{/privacy}","received_events_url":"https://api.github.com/users/openradar-mirror/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":0,"state":"open","created_at":"2015-09-08T19:01:23Z","updated_at":"2015-09-08T19:01:24Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2015-09-08T19:01:24Z","updated_at":"2015-09-08T19:01:24Z","closed_at":null,"body":"#### Description\n\nSummary:\r\nThe attached sample application tries to determine whether the current device has a PIN/passcode set by writing an item to the keychain with the kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly attribute set, and then reads it back.  If the read-back is successful, the device has a PIN/passcode set.  This code works great on iOS 8, but on iOS 9 beta 5 I see spurious error return codes from the keychain API including errSecDuplicateItem and errSecParam.  Additionally I see numerous console error messages from securityd along the lines of \"SecDbRecordChange db <SecDbConnection rw open> changed outside txn\".\r\n\r\nSteps to Reproduce:\r\n1. Unzip and build the attached sample app.\r\n2. Run the sample app on an iOS 9 beta 5 device that has a device PIN/passcode set.\r\n3. Tap on the \"Run Test\" button to start a timer loop executing the code in question every 0.1 seconds. \r\n4. Observe the device console log while running the app over an extended period.\r\n5. You can also set a breakpoint in the error cases in the method devicePINStatus in UIDevice+DevicePIN.m\r\n\r\n\r\nExpected Results:\r\ndevicePINStatus should *always* return DevicePINStatusEnabled, and there should be no error messages in the console logs.\r\n\r\nActual Results:\r\nOn an iOS 8 device this runs perfectly.\r\nOn an iOS 9 meta 5 device I see spurious errors from the keychain API\r\n\r\nVersion:\r\niOS 9 beta 5\r\n\r\nNotes:\r\n\r\n\r\nConfiguration:\r\niOS 9 beta 5 device is an iPad Air 2, iOS 8 device is an iPad 2 WiFi running 8.4.1\r\n\r\nAttachments:\r\n'DocTest2.zip' was successfully uploaded.\n\n-\nProduct Version: beta 5\nCreated: 2015-09-08T18:48:24.448510\nOriginated: 2015-09-08T00:00:00\nOpen Radar Link: http://www.openradar.me/22614269"}}