Ios Pushwoosh集成构建错误

Ios Pushwoosh集成构建错误,ios,pushwoosh,Ios,Pushwoosh,我不明白我为什么会有这个问题。希望有人能帮我解决这个问题。我试图导入pushwoosh框架,在构建项目时出现了这个奇怪的错误。我所做的只是将框架从SDK文件夹拖放到Frameworks文件夹中,然后构建项目。奇怪的是,我找不到有这个问题的人。我使用的是最新的,并且尝试了多种解决类似问题的方法,但都没有解决 Undefined symbols for architecture arm64: "_deflate", referenced from: pushwoosh::zipWri

我不明白我为什么会有这个问题。希望有人能帮我解决这个问题。我试图导入pushwoosh框架,在构建项目时出现了这个奇怪的错误。我所做的只是将框架从SDK文件夹拖放到Frameworks文件夹中,然后构建项目。奇怪的是,我找不到有这个问题的人。我使用的是最新的,并且尝试了多种解决类似问题的方法,但都没有解决

Undefined symbols for architecture arm64:
  "_deflate", referenced from:
      pushwoosh::zipWriteInFileInZip(void*, void const*, unsigned int) in Pushwoosh(zip.o)
      pushwoosh::zipCloseFileInZipRaw(void*, unsigned long, unsigned long) in Pushwoosh(zip.o)
  "_inflate", referenced from:
      pushwoosh::unzReadCurrentFile(void*, void*, unsigned int) in Pushwoosh(unzip.o)
  "_deflateInit2_", referenced from:
      pushwoosh::zipOpenNewFileInZip3(void*, char const*, pushwoosh::zip_fileinfo const*, void const*, unsigned int, void const*, unsigned int, char const*, int, int, int, int, int, int, char const*, unsigned long) in Pushwoosh(zip.o)
  "_deflateEnd", referenced from:
      pushwoosh::zipCloseFileInZipRaw(void*, unsigned long, unsigned long) in Pushwoosh(zip.o)
  "_inflateInit2_", referenced from:
      pushwoosh::unzOpenCurrentFile3(void*, int*, int*, int, char const*) in Pushwoosh(unzip.o)
  "_inflateEnd", referenced from:
      pushwoosh::unzCloseCurrentFile(void*) in Pushwoosh(unzip.o)
  "_crc32", referenced from:
      -[PWZipArchive addFileToZip:newname:] in Pushwoosh(PWZipArchive.o)
      pushwoosh::unzReadCurrentFile(void*, void*, unsigned int) in Pushwoosh(unzip.o)
      pushwoosh::zipWriteInFileInZip(void*, void const*, unsigned int) in Pushwoosh(zip.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

想法?提前谢谢

您需要将libz.dylib添加到项目中:

为此:

转到目标部分 “生成阶段”选项卡 将二进制文件链接到库 点击+按钮 搜索libz.dylib
单击添加按钮。

您需要将libz.dylib添加到项目中:

为此:

转到目标部分 “生成阶段”选项卡 将二进制文件链接到库 点击+按钮 搜索libz.dylib 点击添加按钮