ios - Pushwoosh集成构建错误

标签 ios pushwoosh

我不明白为什么会遇到这个问题。希望有人可以帮助我解决这一问题。我正在尝试导入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)

有什么想法吗?提前致谢!

最佳答案

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

为此:

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

关于ios - Pushwoosh集成构建错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31929422/

相关文章:

ios - localized.strings 文件中的超链接 - objective-c

objective-c - 异常[NSNull isEqualToString:]:当我单击calloutAccessoryControlTapped时无法识别的选择器

ios - NSURLConnection如何获取剩余时间信息

ios - 最新的 iOS 设备支持文件夹

ios - 我想用 1 到 100 的值填充 array2,但保留 array1 中存在的值

ios - 在 iOS 7 上集成 PushWoosh 未订阅 pushwoosh

android - Pushwoosh/GCM - Android - 不接收消息

android - 应用程序打开时推送通知不显示 Pushwoosh - Phonegap

用于推送通知 (Pushwoosh) 的 iOS SSL 证书配置,生成时出错