【问题标题】:Pushwoosh integration build errorPushwoosh 集成构建错误
【发布时间】:2015-08-11 16:23:39
【问题描述】:

我不明白我为什么会遇到这个问题。希望有人可以帮助我解决这个问题。我正在尝试导入 pushwoosh 框架,并且在构建项目时遇到了这个奇怪的错误。我所做的只是将框架从该文件夹 SDK 拖放到我的 Frameworks 文件夹并构建项目。对我来说奇怪的是,我找不到其他人遇到这个问题。我正在使用最新的pushwoosh SDK,针对类似问题尝试了多种解决方案,但均未解决。

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)

想法?提前致谢!

【问题讨论】:

    标签: ios pushwoosh


    【解决方案1】:

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

    这样做:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-08-22
      • 1970-01-01
      • 1970-01-01
      • 2016-03-14
      • 2021-03-09
      相关资源
      最近更新 更多