0
点赞
收藏
分享

微信扫一扫

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

大明宫 2022-02-15 阅读 116


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)

  • 如图:
    iOS开发_SSZipArchive 解压提示 failed to open file in zip file_h5





举报

相关推荐

0 条评论