I just tried using KeychainItemWrapper provided by Apple, but every time I get a binding error:
Undefined symbols for i386 architecture: Msgstr "". objc-class-ref in DataModel.o
ld: character (s) not found for i386 architecture clang: error: linker command did not work with exit code 1 (use -v to call the call)
I have included the security framework and checked why Apple is included in the Xcode project, but I cannot find what is still wrong.
_keychain = [[KeychainItemWrapper alloc] initWithIdentifier:@"com.website.project" accessGroup:nil]; [_keychain setObject:_username forKey:(id)kSecAttrAccount]; [_keychain setObject:_password forKey:(id)kSecValueData];
I also added "com.website.project" to my Keychain access groups.
source share