在支付宝SDK导入后 会报错;
Undefined symbols for architecture arm64:
"_inflate", referenced from:
-[APayProcessor gzipDecompressWithData:] in AlipaySDK
"_deflate", referenced from:
-[APayProcessor gzipCompressWithData:] in AlipaySDK
+[ASSCommonUtils gzipData:] in AlipaySDK
+[DTGZipUtil compressGZip:] in AlipaySDK
"_inflateEnd", referenced from:
-[APayProcessor gzipDecompressWithData:] in AlipaySDK
"_deflateInit2_", referenced from:
-[APayProcessor gzipCompressWithData:] in AlipaySDK
+[ASSCommonUtils gzipData:] in AlipaySDK
+[DTGZipUtil compressGZip:] in AlipaySDK
"_inflateInit2_", referenced from:
-[APayProcessor gzipDecompressWithData:] in AlipaySDK
"_deflateEnd", referenced from:
-[APayProcessor gzipCompressWithData:] in AlipaySDK
+[ASSCommonUtils gzipData:] in AlipaySDK
+[DTGZipUtil compressGZip:] in AlipaySDK
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
解决方法:进入project-->Build Phases -->Link Binary Width Libraries 增加支付宝SDK依赖的库,如下图: