SecItemAdd and SecItemCopyMatching returns error code -34018 (errSecMissingEntitlement)

iOS 10 / XCode 8 Fix: Add KeyChain Entitlement, Go to project settings->Capabilities->Keychain Sharing->Add Keychain Groups+Turn On An answer here, from Apple: UPDATE: We have finally been able to reproduce the -34018 error on iOS 8.3. This is the first step in identifying the root cause and then coming up with a fix. As usual, … Read more