Apple开发_SSZipArchive 解压提示 failed to open file in zip file

1、手动添加直接拖SSZipArchive库进来后报错

  • Error Domain=SSZipArchiveErrorDomain Code=-2 "failed to open file in zip file"

2、解决办法

  • 使用SSZipArchive 注意事项中说到:
    • Add the following GCC_PREPROCESSOR_DEFINITIONS:
      • HAVE_INTTYPES_H HAVE_PKCRYPT HAVE_STDINT_H HAVE_WZAES HAVE_ZLIB $(inherited).
  • 这个就是在build Setting-Preprocessor Macros-双击Multiple values 加上
HAVE_INTTYPES_H HAVE_PKCRYPT HAVE_STDINT_H HAVE_WZAES HAVE_ZLIB $(inherited)
  • 如图:
posted @ 2022-01-17 13:57  CH520  阅读(474)  评论(0编辑  收藏  举报