zoukankan      html  css  js  c++  java
  • iOS边练边学--文件压缩和解压缩的第三方框架SSZipArchive的简单使用

    一、非cocoaPods方法,需要注意的是:直接将SSZipArchive拖入项目编译会报错。

    Undefined symbols for architecture x86_64:

      "_crc32", referenced from:

          _unzReadCurrentFile in unzip.o

          _zipWriteInFileInZip in zip.o

      "_deflate", referenced from:

          _zipWriteInFileInZip in zip.o

          _zipCloseFileInZipRaw64 in zip.o

      "_deflateEnd", referenced from:

          _zipCloseFileInZipRaw64 in zip.o

      "_deflateInit2_", referenced from:

          _zipOpenNewFileInZip4_64 in zip.o

      "_get_crc_table", referenced from:

          _unzOpenCurrentFile3 in unzip.o

          _zipOpenNewFileInZip4_64 in zip.o

      "_inflate", referenced from:

          _unzReadCurrentFile in unzip.o

      "_inflateEnd", referenced from:

          _unzCloseCurrentFile in unzip.o

      "_inflateInit2_", referenced from:

          _unzOpenCurrentFile3 in unzip.o

    ld: symbol(s) not found for architecture x86_64

    clang: error: linker command failed with exit code 1 (use -v to see invocation)

    将框架拖入项目,还需要引入另一个资源包。如图:

    二、利用cocoaPods导入的SSZipArchive则不需要导入任何资源包,因为系统已经帮我们做好了。代码示例:

  • 相关阅读:
    require.js+bootstrap实现简单的页面登录和页面跳转
    require.js疑惑
    汉子转拼音(不支持多音字)
    require.js入门
    CSS+transform画动态表情
    nodejs的简单爬虫
    根据选择的省市区自动匹配邮政编码
    node将excel内容转json
    js实现省市区联动
    sql server 作业收缩数据库
  • 原文地址:https://www.cnblogs.com/gchlcc/p/5440209.html
Copyright © 2011-2022 走看看