• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

kolpanic/ZipKit: An Objective-C Zip framework for macOS and iOS.

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

kolpanic/ZipKit

开源软件地址(OpenSource Url):

https://github.com/kolpanic/ZipKit

开源编程语言(OpenSource Language):

Objective-C 98.9%

开源软件介绍(OpenSource Introduction):

ZipKit

ZipKit is an Objective-C framework for reading and writing Zip archives in macOS and iOS apps. It supports:

  • the standard PKZip format;
  • files larger than 4GB in size using PKZip's zip64 extensions (ZKFileArchive only);
  • optionally, resource forks in a manner compatible with macOS's Archive Utility (in the macOS targets only);
  • clean interruption, so archiving can be cancelled by the invoking object (e.g., a NSOperation or NSThread).

It was developed by Karl Moskowski (aka @kolpanic) and released under the BSD license.

If you find ZipKit to be useful, please let me know.

Requirements

ZipKit requires Xcode 4.6 or higher. It works on OS X 10.8 Mountain Lion, and iOS 6.0 or higher. (If you're using older versions, make sure you git checkout 1.0.0. The project at that tag supports garbage collection and manual memory management.) The Xcode project contains three targets: a macOS framework, a macOS static library, and an iOS static library.

Using ZipKit

  1. If you're using git for your project, first add ZipKit as a submodule to your project. If you're not using git, clone ZipKit into your project's directory. (If you're using another VCS, you might want to ignore the ZipKit sub-project, or at least its .git/ directory.)
  2. Open your .xcodeproj and drag ZipKit Framework.xcodeproj from the Finder to Xcode's Project Navigator for your project. The Frameworks group is a good place for it.
  3. In the Project Navigator for your project, disclose ZipKit's Products and note the one you want to use in your project.
  4. In the Project Navigator, select your project at the top, then:
    • add the relevant ZipKit product to your target's Linked Frameworks and Libraries section, and add it to the your target's Target Dependencies under Build Phases;
    • add libz.dylib to your target's Linked Frameworks;
    • add ./ZipKit/ to your "Header Search Paths" setting
  5. If you're using one of ZipKit's static library targets in your project, add -ObjC to your target's Other Linker Flags. You may have to add -all_load as well. (Objective-C categories aren't properly linked by default when using static libraries.)

Open ZipKit.xcworkspace in Xcode and see the included Demo Projects for guidance.

License

ZipKit is released under the BSD license. It's in COPYING.TXT in the project. Acknowledge ZipKit (and other FOSS projects you use) in your app's About or Settings view or window. (If your iOS app doesn't have either, you can add a Settings Bundle; see the ZipKit Touch demo.)

Credits

  • Thanks to Jaka Jančar for original implementation of manual memory management & iOS support.
  • MacFUSE's GMAppleDouble used with appreciation.



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap