Skip to content
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

"Invalid block type found" #8

Open
Unome5548 opened this issue May 21, 2015 · 4 comments
Open

"Invalid block type found" #8

Unome5548 opened this issue May 21, 2015 · 4 comments

Comments

@Unome5548
Copy link

I created a tar file using the tar -cf command like it says on the Light-Untar-for-iOS documentation. When I run:

NVHTarGzip.shared().unTarFileAtPath(path, toPath: destinationPath, completion: { (error:NSError!) -> Void in
println("Finished (error)")
})

I get an error back with Code = 1 "Invalid block type found". I can't figure out what I'm doing wrong, any suggestions?

@Unome5548
Copy link
Author

I defaulted back to the Light-Untar-for-iOS, and it worked. So not sure why this one wouldn't do it.

@iori57
Copy link

iori57 commented Jun 16, 2015

I tried to run unTarGzipFileAtPath on the file downloaded below and it gives "Invalid block type found" error too. Nothing was being output in the output path. I am not sure why.

https://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.deu.tar.gz

Running the same code using another .tar.gz file that I found randomly works though and I can see the output..

@j4nos
Copy link

j4nos commented Oct 28, 2015

Same for me, generated a tar.gz on my mac added to bundle and get an error when extracted:

2015-10-28 09:21:35.834 monexio[9061:3116037] Error untarring Error Domain=io.nvh.targzip.tar.error Code=1 "Invalid block type found" UserInfo={NSLocalizedDescription=Invalid block type found}

@jjamminjim
Copy link

jjamminjim commented Aug 5, 2022

This error manifested for me with tar/gzip files generated on the Mac with embedded .DS_Store files in the folder structure.
The solution was to remove the .DS_Store files, or to add the following just after line 234 in NVHTarFile.m (just after case 'g':)...

 case ' ': // .DS_Store filea manifest with an empty string as their type.

Hope this helps.

jjamminjim added a commit to GreenJell0/NVHTarGzip that referenced this issue Aug 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants