When I compile my macOS cocos2d project, I get this error:
Undefined symbols for architecture x86_64: "_inflateInit2_", referenced from: _ccInflateMemoryWithHint in ZipUtils.o "_inflate", referenced from: _ccInflateMemoryWithHint in ZipUtils.o "_inflateEnd", referenced from: _ccInflateMemoryWithHint in ZipUtils.o "_gzopen", referenced from: _ccInflateGZipFile in ZipUtils.o "_gzread", referenced from: _ccInflateGZipFile in ZipUtils.o "_gzclose", referenced from: _ccInflateGZipFile in ZipUtils.o "_uncompress", referenced from: _ccInflateCCZFile in ZipUtils.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
ExceptionSlayer
source share