**Undefined symbols for architecture armv7:
"_kSecValueData", referenced from:
[WXOMTAKeyChain save:data:] in libWeChatSDK.a(MTAKeyChain.o)
"_kSecReturnData", referenced from: +[WXOMTAKeyChain load:] in libWeChatSDK.a(MTAKeyChain.o)
"_SecItemCopyMatching", referenced from: +[WXOMTAKeyChain load:] in libWeChatSDK.a(MTAKeyChain.o)
"_kSecClass", referenced from:
[WXOMTAKeyChain getKeychainQuery:] in libWeChatSDK.a(MTAKeyChain.o)
"_kSecMatchLimit", referenced from:
+[WXOMTAKeyChain load:] in libWeChatSDK.a(MTAKeyChain.o) "_kSecClassGenericPassword", referenced from: +Undefined symbols for architecture armv7:
"_kSecValueData", referenced from: +[WXOMTAKeyChain save:data:] in libWeChatSDK.a(MTAKeyChain.o)
"_kSecReturnData", referenced from: +[WXOMTAKeyChain load:] in libWeChatSDK.a(MTAKeyChain.o)
"_SecItemCopyMatching", referenced from: +[WXOMTAKeyChain load:] in libWeChatSDK.a(MTAKeyChain.o)
"_kSecClass", referenced from: +
[WXOMTAKeyChain getKeychainQuery:] in libWeChatSDK.a(MTAKeyChain.o)
"_kSecMatchLimit", referenced from: +[WXOMTAKeyChain load:] in libWeChatSDK.a(MTAKeyChain.o)
"_kSecClassGenericPassword", referenced from: +[WXOMTAKeyChain getKeychainQuery:] in libWeChatSDK.a(MTAKeyChain.o)
"_kSecAttrService", referenced from: +[WXOMTAKeyChain getKeychainQuery:] in libWeChatSDK.a(MTAKeyChain.o)
"_kSecMatchLimitOne", referenced from: +[WXOMTAKeyChain load:] in libWeChatSDK.a(MTAKeyChain.o)
"_kSecAttrAccount", referenced from: +[WXOMTAKeyChain getKeychainQuery:] in libWeChatSDK.a(MTAKeyChain.o)
"_kSecAttrAccessibleAfterFirstUnlock",
referenced from:
+[WXOMTAKeyChain getKeychainQuery:] in libWeChatSDK.a(MTAKeyChain.o)
"_kSecAttrAccessible", referenced from: +[WXOMTAKeyChain getKeychainQuery:] in libWeChatSDK.a(MTAKeyChain.o)
"_SecItemDelete", referenced from: +[WXOMTAKeyChain save:data:] in libWeChatSDK.a(MTAKeyChain.o)
+[WXOMTAKeyChain delete:] in libWeChatSDK.a(MTAKeyChain.o)
"_SecItemAdd", referenced from: +[WXOMTAKeyChain save:data:] in libWeChatSDK.a(MTAKeyChain.o)
ld: symbol(s) not found for architecture armv7 clang:
error: linker command failed with exit code 1 (use -v to see invocation)
**
解决办法:
添加库文件:Security.framework