Undefined symbols for architecture x86_64:
"_kCFStreamNetworkServiceTypeVoIP", referenced from:
-[WXOGCDAsyncSocket enableBackgroundingOnSocketWithCaveat:] in libWeChatSDK.a(GCDAsyncSocket.o)
"_kCFStreamPropertySSLSettings", referenced from:
-[WXOGCDAsyncSocket cf_startTLS] in libWeChatSDK.a(GCDAsyncSocket.o)
"_kCFStreamSSLPeerName", referenced from:
-[WXOGCDAsyncSocket ssl_startTLS] in libWeChatSDK.a(GCDAsyncSocket.o)
"_kCFStreamNetworkServiceType", referenced from:
-[WXOGCDAsyncSocket enableBackgroundingOnSocketWithCaveat:] in libWeChatSDK.a(GCDAsyncSocket.o)
"_kCFStreamSSLCertificates", referenced from:
-[WXOGCDAsyncSocket ssl_startTLS] in libWeChatSDK.a(GCDAsyncSocket.o)
"_kCFStreamSSLIsServer", referenced from:
-[WXOGCDAsyncSocket ssl_startTLS] in libWeChatSDK.a(GCDAsyncSocket.o)
"_kCFStreamSSLAllowsAnyRoot", referenced from:
-[WXOGCDAsyncSocket ssl_startTLS] in libWeChatSDK.a(GCDAsyncSocket.o)
"_kCFStreamSSLAllowsExpiredRoots", referenced from:
-[WXOGCDAsyncSocket ssl_startTLS] in libWeChatSDK.a(GCDAsyncSocket.o)
"_kCFStreamSSLValidatesCertificateChain", referenced from:
-[WXOGCDAsyncSocket ssl_startTLS] in libWeChatSDK.a(GCDAsyncSocket.o)
"_kCFStreamSSLAllowsExpiredCertificates", referenced from:
-[WXOGCDAsyncSocket ssl_startTLS] in libWeChatSDK.a(GCDAsyncSocket.o)
"_kCFStreamSSLLevel", referenced from:
-[WXOGCDAsyncSocket ssl_startTLS] in libWeChatSDK.a(GCDAsyncSocket.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
解决办法:添加库 CFNetwork.framework libc++.tbd