【解决办法】下载微信支付ios版,导入demo时,出现的编译错误。【WeChatSDK1.6.2_Sample】

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
posted @ 2016-02-23 18:04  小青蛙王子  阅读(493)  评论(0编辑  收藏  举报