New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fatal Error: NSFileModificationDate not implemented when unzip item on Linux. #65
Comments
I was able to reproduce the issue with your test repository. Thanks for taking the effort to write a quick sample - this really helps. The problem is, that Swift's corelibs Foundation (which is used on Linux as replacement for the closed source Foundation on iOS/macOS/...) lacks file modification date support in Update (13.12.2018) ZIPFoundation/Sources/ZIPFoundation/Archive+Reading.swift Lines 23 to 57 in e933784
(Avoid the problematic |
Is there any way to extract the archive on Linux now? Iterating over the archive is nice and all, but the execution fails when calling the extract-method of the archive. Or is there another way to get the extracted result from the entry than calling |
Extracting via If you can provide some details about your environment (Swift Version, Linux distribution, ...) and a source snippet of your extraction code I can have a look. |
The application is build with Swift 4.2.1 and runs in a docker-container with Ubuntu 18.04. I use the following code to extract the archive:
|
What |
The same as stated in this issue. |
I just wrote a small test program to check the current state of Linux support. My original statement, that only the However, there is a second |
Ok, thank you very much. I'll give that a try. |
I updated my first reply with some details on how to work around this issue. |
If I'm understanding correctly, the workaround is to copy that method and just remove the |
Summary
Fatal error when tried to unzip on linux.
Same code, everything works well on macOS, but failed on linux.
Steps to Reproduce
I make a small demo to reproduce this:
Expected Results
successfully unzip.
Actual Results
Regression & Version
ZipFoundation: 0.9.6
Ubuntu 16.04
Swift 4.1
Related Link
The text was updated successfully, but these errors were encountered: