SecItemAdd always returns error -34018 in Xcode 8 in iOS 10 simulator
Update : This issue has been fixed in Xcode 8.2. Keychain works in the simulator without enabling keychain sharing. Why am I always receiving error -34018 when calling SecItemAdd function in Xcode 8 / iOS 10 simulator ? Steps to Reproduce Create a new Single page iOS app project in Xcode 8. Run the following code in viewDidLoad (or open this Xcode project). let itemKey = "My key" let itemValue = "My secretive bee 🐝" // Remove from Keychain // ---------------- let queryDelete: [String: AnyObject] = [ kSecClass as String: kSecClassGenericPassword, kSecAttrAccount as String: itemKey as AnyObject