Keychain ARC Errors
automatic-ref-counting, ios, iphone, objective-c, xcode
Solution
You're getting this because `kSecAttrAccount` and such aren't Obj-C types. Just place a `(__bridge id)` before each like
[keychainItem setObject:password.text forKey:(__bridge id)kSecValueData];
Problem
I'm using the following code within XCode, building for iOS with ARC enabled. Why are these errors appearing? Here's my code: ``` KeychainItemWrapper *keychainItem = [[KeychainItemWrapper alloc] initWithIdentifier:@"Test" accessGroup:nil]; [keychainItem setObject:@"Test" forKey:kSecAttrService]; [keychainItem setObject:password.text forKey:kSecValueData]; [keychainItem setObject:username.text forKey:kSecAttrAccount]; ```