Cannot add Credential to KeyChain

Please include the following information in your post:

  • Which SDK this is regarding: iOS SDK
  • SDK Version: 2.0
  • Platform Version: iOS 15.0
  • Code Snippets/Error Messages/Supporting Details/Screenshots:

While unit testing the CredentialsManager in the simulator, when I save a credential,

OSStatus status = SecItemAdd((__bridge CFDictionaryRef)newQuery, NULL); fails and returns
errSecMissingEntitlement = -34018, /* A required entitlement isn’t present. */

I don’t want to use to use access group, as I only have one app.