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则不需要导入任何资源包,因为系统已经帮我们做好了。代码示例:

  • 相关阅读:
    8-2蒙版初识
    8-1使用自由变换(有些操作和教程不同)
    7-11使用色彩调整图层
    7-10使用历史记录画笔
    7-9将灰度转为彩色
    7-8其他色彩调整
    7-7自动色阶/自动对比度/自动颜色
    7-6替换颜色和色彩范围选取
    7-5匹配颜色
    7-4暗调/高光
  • 原文地址:https://www.cnblogs.com/gchlcc/p/5440209.html
Copyright © 2011-2022 走看看