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

大明宫

关注

阅读 116

2022-02-15


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)

0 0 举报