报错:Undefined symbols for architecture i386 "_deflate"


You didn't include the libz.dylib where those functions are. Select the project node, select your target, go to the Build Phases tab, expand "Link Binaries With Libraries", add libz.dylib, and try again.


使用zlib的时候需要添加2个lib,因为之前只家了一个lib,所以处问题了,libz.dylib & libbz2.1.0.dylib

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章