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).
- Add the following GCC_PREPROCESSOR_DEFINITIONS:
- 这个就是在build Setting-Preprocessor Macros-双击Multiple values 加上
HAVE_INTTYPES_H HAVE_PKCRYPT HAVE_STDINT_H HAVE_WZAES HAVE_ZLIB $(inherited)
- 如图: