Giter Site home page Giter Site logo

Comments (18)

alexbell avatar alexbell commented on June 3, 2024

Experiencing this as well. Perhaps it's because this version includes its own ZLib? The Agile Bits repo of Objective-Zip uses the system provided one (among other differences) and works OK in this respect on OS X.

from objective-zip.

mojtabacazi avatar mojtabacazi commented on June 3, 2024

Make sure that you are closing the zip file when you are done:

[zipFile close];

from objective-zip.

svintus avatar svintus commented on June 3, 2024

Having the same issue, and I'm definitely calling [zipFile close]; This seems to be a regression. 0.8 works fine, 0.8.3 is broken.

from objective-zip.

mojtabacazi avatar mojtabacazi commented on June 3, 2024

I'm using 0.8.3 and it works fine! Could you upload 1-2 sample files some where so I can check see what's happening

from objective-zip.

fparkar avatar fparkar commented on June 3, 2024

@mojtabacazi : You can check the version of code you have on github... just comment removeItemAtPath:filePath line in finally you have for test1()... This way you will have test1 file in Documents folder... Now try to double click on test.zip file and you will see it as test.zip.cpgz

from objective-zip.

michaelmj avatar michaelmj commented on June 3, 2024

These do unzip correctly with the command line "unzip", but they also fail with some other zip libraries I'm using (e.g. Exceed Zip). Using the built in zlib didn't fix this issue.

from objective-zip.

mike-lischke avatar mike-lischke commented on June 3, 2024

I see this problem as well (using the latest code from Github). The zip file can be unzipped with the command line tool unzip as well as The Unarchiver, but not using the system archive utility. Would be great if you could give this some priority for fixing.

from objective-zip.

eholzwarth avatar eholzwarth commented on June 3, 2024

Hi, I'm having the same problem, did anyone end up finding a solution? I'm using the AgileBits (built-in zlib) fork.

from objective-zip.

fparkar avatar fparkar commented on June 3, 2024

@eholzwarth : I used https://github.com/soffes/ssziparchive. It works like charm...

from objective-zip.

ufoq avatar ufoq commented on June 3, 2024

I fixed it changing zip64 parameter from 1 to 0 in calls to zipOpenNewFileInZip3_64 in writeFileInZipWithName ... methods in ZipFile. When zip64 is 1 it writes in header that version 4.5 is needed to decompress file that is too high for finder.

from objective-zip.

dpr11 avatar dpr11 commented on June 3, 2024

@mUfoq : Ahah! Changing those calls does indeed seem to make the Finder unzip them. Great. Thanks.

from objective-zip.

mike-lischke avatar mike-lischke commented on June 3, 2024

Will you create a pull request to have that fix in?

from objective-zip.

ufoq avatar ufoq commented on June 3, 2024

Problem is that it is not fix, it is workaround. It's just like writing in metadata that we don't use zip64 features. If you want to make for example more than 4GB file and give it to finder, it wouldn't work.
Fixing it correctly should allow disabling zip64 from api or choose it dynamically by looking on features. My workaround is only for people that are sure that they make simple old zip file so it doesn't qualify for pull request.

from objective-zip.

fparkar avatar fparkar commented on June 3, 2024

@mUfoq : just go with https://github.com/soffes/ssziparchive... It works perfectly...

from objective-zip.

fparkar avatar fparkar commented on June 3, 2024

@mike-lischke : just go with https://github.com/soffes/ssziparchive its works perfectly...

from objective-zip.

clueckler avatar clueckler commented on June 3, 2024

same issue here ... work with CLI but not with Extraction Programms. Windows Machines can unzip the files without any problems.

from objective-zip.

abhibeckert avatar abhibeckert commented on June 3, 2024

@fparkar why do you keep telling people to use SSZipArchive? It's missing a whole bunch of important features that make it unusable for many projects.

from objective-zip.

mgiraldo avatar mgiraldo commented on June 3, 2024

for those coming late to the thread, the “zip64 solution” means creating your zip like so:

OZZipFile *zipFile = [[OZZipFile alloc] initWithFileName:@"myFile.zip" mode:OZZipFileModeCreate legacy32BitMode:YES];

from objective-zip.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.