今天要导入一个第三方库,就遇到了一大堆问题,其中就有一个是
Undefined symbols for architecture armv7:
"_deflateEnd", referenced from:
-[ASIDataCompressor closeStream]in ASIDataCompressor.o
"_OBJC_CLASS_$_ASIDataDecompressor", referencedfrom:
objc-class-refin ASIHTTPRequest.o
"_deflate", referenced from:
-[ASIDataCompressor compressBytes:length:error:shouldFinish:]in ASIDataCompressor.o
"_deflateInit2_", referenced from:
-[ASIDataCompressor setupStream]in ASIDataCompressor.o
ld: symbol(s) not found for architecture armv7
我的解决方案是
在Build Settings中搜索 Other Linker Flags 将其值改为 -ObJC