|
1、现象
"_kCFStreamSSLValidatesCertificateChain", referenced from:
-[WXOGCDAsyncSocket ssl_startTLS] in libWeChatSDK.a(GCDAsyncSocket.o)
"_kCFStreamSSLPeerName", referenced from:
-[WXOGCDAsyncSocket ssl_startTLS] in libWeChatSDK.a(GCDAsyncSocket.o)
"_kCFStreamSSLLevel", referenced from:
-[WXOGCDAsyncSocket ssl_startTLS] in libWeChatSDK.a(GCDAsyncSocket.o)
"_kCFStreamSSLAllowsExpiredRoots", 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)
"_kCFStreamPropertySSLSettings", referenced from:
-[WXOGCDAsyncSocket cf_startTLS] in libWeChatSDK.a(GCDAsyncSocket.o)
"_kCFStreamNetworkServiceTypeVoIP", referenced from:
-[WXOGCDAsyncSocket enableBackgroundingOnSocketWithCaveat:] in libWeChatSDK.a(GCDAsyncSocket.o)
"_kCFStreamSSLAllowsExpiredCertificates", referenced from:
-[WXOGCDAsyncSocket ssl_startTLS] in libWeChatSDK.a(GCDAsyncSocket.o)
"_kCFStreamSSLCertificates", referenced from:
-[WXOGCDAsyncSocket ssl_startTLS] in libWeChatSDK.a(GCDAsyncSocket.o)
"_kCFStreamNetworkServiceType", referenced from:
-[WXOGCDAsyncSocket enableBackgroundingOnSocketWithCaveat:] in libWeChatSDK.a(GCDAsyncSocket.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
2、解决办法
com.justep.cordova.plugin.weixin.v3 的plugin.xml 的55行,追加<framework src="CFNetwork.framework" />。打包成功。 |
|