使用SSZipArchive 注意事项


https://github.com/ZipArchive/ZipArchive/issues/519

使用SSZipArchive 注意事项:

4. 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)

不然报错:

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

 

参考

https://www.jianshu.com/p/0ad26c2fda39


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM