“Untar” file on iPhone

前端 未结 3 1133
暖寄归人
暖寄归人 2021-01-02 02:05

I\'m writing an iPhone app which downloads a tar-gzipped file from a Webserver, then needs to unarchive this file so that it can be copied into the app\'s Documents folder.<

相关标签:
3条回答
  • 2021-01-02 02:15

    Here is a light untar library for iOS : https://github.com/mhausherr/Light-Untar-for-iOS

    Complete blog post about the solution : http://blog.octo.com/en/untar-on-ios-the-pragmatic-way/

    Hope this helps, Vincent

    0 讨论(0)
  • 2021-01-02 02:15

    I took a different approach by building libarchive and bz2lib as a static library for iOS. You can find it here:

    http://github.com/davepeck/iOS-libarchive/

    0 讨论(0)
  • 2021-01-02 02:38

    This blog post should help you: http://blog.hawkey.org/?p=332

    EDIT: Google cache version of the same page which actually links to a forum post here which links to a Google Code project here, containing some code which implements unzipping on iOS.

    0 讨论(0)
提交回复
热议问题