Comments (18)
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.
Make sure that you are closing the zip file when you are done:
[zipFile close];
from objective-zip.
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.
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.
@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.
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.
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.
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.
@eholzwarth : I used https://github.com/soffes/ssziparchive. It works like charm...
from objective-zip.
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.
@mUfoq : Ahah! Changing those calls does indeed seem to make the Finder unzip them. Great. Thanks.
from objective-zip.
Will you create a pull request to have that fix in?
from objective-zip.
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.
@mUfoq : just go with https://github.com/soffes/ssziparchive... It works perfectly...
from objective-zip.
@mike-lischke : just go with https://github.com/soffes/ssziparchive its works perfectly...
from objective-zip.
same issue here ... work with CLI but not with Extraction Programms. Windows Machines can unzip the files without any problems.
from objective-zip.
@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.
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)
- Compressing large files in zip vs `streaming` HOT 1
- Code example error HOT 1
- Zip file size too low HOT 4
- Buffer length too short HOT 3
- There isn't any function "isEncrypted"
- Warning: HTML end tag does not match any start tag
- NSDate+DOSDate.h file not found HOT 2
- Password not valid when opening zip file
- Feature Request: unzip a specific byte range HOT 2
- MiniZip unzip.c hava some bug, it need to be make modifications HOT 2
- Conflict with OpenSSL HOT 5
- [NSDate fromDosDate:]: unrecognized selector sent to class 0x7fffa19110d0 HOT 1
- Error reading file with 1.0.4 & 1.0.5, working with 1.0.3 HOT 7
- Zip Path Traversal vulnerability HOT 1
- Error opening file in zipfile HOT 4
- .unzipItem doesn't unzip all files
- UnZips Successfully Only with B1 Free Archiever HOT 1
- Consultation query: Security Using Objective Zip HOT 1
- Error opening 'log.txt' in zipfile HOT 1
- 存在4个高危漏洞
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from objective-zip.