我一直在搜索有关如何访问和保存到 iPhone 钥匙串的更新教程,但似乎找不到任何不会给我带来大量错误并使用不推荐使用的代码的教程。
如果有人能引导我走向正确的方向,那就太棒了!
谢谢!
这是我得到的错误:
Undefined symbols for architecture armv7s:
"_kSecValueData", referenced from:
-[MainViewController viewDidLoad] in MainViewController.o
"_kSecAttrAccount", referenced from:
-[MainViewController viewDidLoad] in MainViewController.o
"_kSecAttrAccessibleWhenUnlocked", referenced from:
-[MainViewController viewDidLoad] in MainViewController.o
"_kSecAttrAccessible", referenced from:
-[MainViewController viewDidLoad] in MainViewController.o
"_OBJC_CLASS_$_KeychainItemWrapper", referenced from:
objc-class-ref in MainViewController.o
ld: symbol(s) not found for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)
第二个错误:
Undefined symbols for architecture armv7s:
"_OBJC_CLASS_$_KeychainItemWrapper", referenced from:
objc-class-ref in MainViewController.o
ld: symbol(s) not found for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)