Apple has provided KeyChainItemWrapper class in their GenericKeyChain sample code. There is an ARC\'ed solution here on SO, which I am trying to follow: wrapper to store in the
I had the same error when running the App on the Simulator, but it worked perfectly on the device.
In order to fix the problem with the simulator I had to turn on "Share keychain entitlement".
Share keychain entitlement