To begin, some details : we are developing an iOS application currently using Swift/Xcode 6.1 GM 2 for development.
We are having some confusing problems with keychain
Everything in the provisioning profile and keychain code appears to be fine. The problem is a setting in the Swift compiler ... Change the Optimization Level for "Release" from "Fastest" to "None" and this seems to resolve the problem
Make sure you also specify value for kSecAttrAccessible
. Maybe also specify value for kSecAttrAccessControl
, which was added in iOS8.