运行项目出现错误:missing required architecture i386 in file

运行项目出现错误: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.o  
ld: symbol(s) not found for architecture i386  

collect2: ld returned 1 exit status


这时不是你的第三方类所引起,而是你没有添加本身的类。。。


2) 添加CFNetwork, SystemConfiguration, MobileCoreServices, CoreGraphics and zlib




Open the Build Phases tab, expand the box labeled Link Binary With Libraries then click the plus button.



Choose CFNetwork.framework from the list, and click Add:



Repeat the last two steps to add the following: SystemConfiguration.frameworkMobileCoreServices.framework,CoreGraphics.framework and libz.dylib.这个很重要


你可能感兴趣的:(ios开发,ios7)