react-native-zip-archive icon indicating copy to clipboard operation
react-native-zip-archive copied to clipboard

iOS unzipping not working after upgrading to v7

Open somasekharkakarla opened this issue 8 months ago • 5 comments

Describe the bug i am using a node js server to unzip the files and using a library called unzipper. Before upgrading by react native version is v6.0.1 is working fine but after upgrade iOS is causing the issue. It is unzipping fine in my mac. But not unzipping in server.

https://www.npmjs.com/package/unzipper

Error: invalid signature: 0x6e7a0 at /var/task/node_modules/unzipper/lib/parse.js:66:26 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

To Reproduce Steps to reproduce the behavior:

  1. Use below two zip created from v7 1.1. andriod - part-1.zip 1.2.iOS(Error) - part-2.zip

  2. Use below two zip created from v6 2.1. android - part-3.zip 2.2. iOS - part-4.zip

Expected behavior Expected to work normally

Env (please complete the following information):

  • Device: iPhone 11
  • OS: iOS 18.1
  • xcode:16.2
  • Package Version: 7.0.1
  • react native:0.76.6
  • react: 18.3.1
  • Arch: Old

somasekharkakarla avatar May 15 '25 09:05 somasekharkakarla

@plrthink please look into it. It creating issue for iOS users

somasekharkakarla avatar May 16 '25 14:05 somasekharkakarla

Can someone look into this issue..

deepakSenseHawk avatar May 20 '25 09:05 deepakSenseHawk

Same here! I get an error failed to open zip file

NathanNovak avatar Jun 12 '25 19:06 NathanNovak

Having the same issue

Device: iPhone 12 Pro OS: 26.1 Xcode: 26.1.1 Package vers: 7.0.2 react Native: 0.81.4

konsnos avatar Nov 27 '25 08:11 konsnos

My bad, I had to use decodeURIComponent to decode URL-encoded characters. My path had symbols like %20.

konsnos avatar Nov 27 '25 08:11 konsnos