运行项目出现错误:missing required architecture i386 in file
ld: warning: ignoring file /Users/hhb/Documents/网络传真项目/Program/Program/lib/libz.1.2.3.dylib, missing required architecture i386 in file
Undefined symbols for architecture i386: "_deflateInit2_", referenced from: -[ASIDataCompressor setupStream] in ASIDataCompressor.o "_deflateEnd", referenced from: -[ASIDataCompressor closeStream] in ASIDataCompressor.o "_deflate", referenced from: -[ASIDataCompressor compressBytes:length:error:shouldFinish:] in ASIDataCompressor.o "_inflateInit2_", referenced from: -[ASIDataDecompressor setupStream] in ASIDataDecompressor.o "_inflateEnd", referenced from: -[ASIDataDecompressor closeStream] in ASIDataDecompressor.o "_inflate", referenced from: -[ASIDataDecompressor uncompressBytes:length:error:] in ASIDataDecompressor.old: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
这时不是你的第三方类所引起,而是你没有添加本身的类。。。
2) 添加CFNetwork, SystemConfiguration, MobileCoreServices, CoreGraphics and zlib
Open theBuild Phasestab, expand the box labeledLink Binary With Librariesthen click the plus button.
ChooseCFNetwork.frameworkfrom the list, and click Add:
Repeat the last two steps to add the following:SystemConfiguration.framework,MobileCoreServices.framework,CoreGraphics.frameworkandlibz.dylib.这个很重要
,觉得自己做的到和不做的到,其实只在一念之间