相关疑难解决方法(0)

在iOS中导入zlib时出错:找不到符号collect2:ld

我已经包含<zlib.h>在我的iphone应用程序和源代码中,我正在模拟Brad Larson提供的Molecules示例代码,但是,当我构建项目时,它返回如下错误.任何人都可以向我指出这是一个链接问题的库还是我错过了其他东西?

"_deflate", referenced from: -[NSData(Gzip) gzipDeflate] in NSData+Gzip.o "_inflateEnd", 
referenced from: -[NSData(Gzip) initWithGzippedData:] in NSData+Gzip.o "inflateInit2", 
referenced from: -[NSData(Gzip) initWithGzippedData:] in NSData+Gzip.o "_inflate", 
referenced from: -[NSData(Gzip) initWithGzippedData:] in NSData+Gzip.o "_deflateEnd", 
referenced from: -[NSData(Gzip) gzipDeflate] in NSData+Gzip.o "deflateInit2", referenced 
from: -[NSData(Gzip) gzipDeflate] in NSData+Gzip.o ld: symbol(s) not found collect2: ld 
returned 1 exit status
Run Code Online (Sandbox Code Playgroud)

linker zlib ios

28
推荐指数
2
解决办法
2万
查看次数

标签 统计

ios ×1

linker ×1

zlib ×1