KeychainItemWrapper binding error

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.

+6
source share
1 answer

Make sure KeychainItemWrapper is in the Compilation Sources list.

+11
source

Source: https://habr.com/ru/post/915868/


All Articles