1

On iOS8 when I am trying to set the kSecAttrAccessible key before setting my object .I am facing an Assertion failure crash. KeychainItemWrapper* keychain = [[KeychainItemWrapper alloc] initWithIdentifier:@"KeychainTest" accessGroup:nil]; [keychain setObject:kSecAttrAccessibleWhenUnlocked forKey:kSecAttrAccessible]; [keychain setObject:@"MySuperSecretPassword" forKey:kSecValueData]; The assertion failure is due to SecItemUpdate() returning a status of -50, which appears to be a generic "invalid parameters" error?

Please can anyone help? Its similar to iOS8 + Apple's KeychainItemWrapper results in a crash. But I don't think we have a clear answer there as well?

Community
  • 1
  • 1
IOSDevops
  • 111
  • 10

0 Answers0