首页 > 移动平台 > 详细

iOS边练边学--文件压缩和解压缩的第三方框架SSZipArchive的简单使用

时间:2016-04-27 20:36:49      阅读:693      评论:0      收藏:0      [点我收藏+]

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

技术分享

iOS边练边学--文件压缩和解压缩的第三方框架SSZipArchive的简单使用

原文:http://www.cnblogs.com/gchlcc/p/5440209.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!