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