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

Again errors when opening Excel files #33

Closed
chbeer opened this issue Sep 30, 2021 · 10 comments
Closed

Again errors when opening Excel files #33

chbeer opened this issue Sep 30, 2021 · 10 comments
Assignees
Labels

Comments

@chbeer
Copy link

chbeer commented Sep 30, 2021

There were problems opening Excel files with earlier versions.

Since I switched to the SPM version I got this error again:

IMG_2B25AB2011A6-1

Anybody else? In the past it was related to (SS)ZipArchive and/or a missing XML-node. Does somebody else have this?

@chbeer
Copy link
Author

chbeer commented Sep 30, 2021

This also happens with the current CocoaPods version. I'm sure it was fixed 🤔

@shiva-menlo
Copy link

Any solution for this? Even i am getting this error.
Screenshot 2021-11-24 at 1 18 18 PM
.

@chbeer
Copy link
Author

chbeer commented Nov 24, 2021

As far as I understand, the problem is coming from ZipArchive creating some kind of wrong ZIP. I „solved“ this issue by using an older version of ZipArchive.

@shiva-menlo
Copy link

Can you please let us know which ZipArchive version did you used?

@chbeer
Copy link
Author

chbeer commented Nov 24, 2021

Sure, I cloned XlsxReaderWriter to change the dependency:
https://github.com/chbeer/XlsxReaderWriter.git / master branch

@shiva-menlo
Copy link

@chbeer , thank you for git url. I will update to this later.
as a hot fix I just changed below line in my pod file, i know it's going backwards but fixed for now.

pod 'SSZipArchive', '2.2'
pod 'XlsxReaderWriter', '2.4.1', :source => 'https://github.com/charlymr/XlsxReaderWriter-Podspecs.git''

@chbeer
Copy link
Author

chbeer commented Nov 24, 2021

Yes, I did something like that as well. But we switched to SPM and that's not as easy to fix there.

@shiva-menlo
Copy link

OK @chbeer ,
Thank you for helping me out on this (Y)

@charlymr
Copy link
Owner

@chbeer @shiva-menlo I am trying to use an older version of ZipArchive. with 2.3.0 the Xlsx file open fine without error. Will try to push the update tomorrow.

@charlymr charlymr added the bug label Nov 24, 2021
@charlymr
Copy link
Owner

@chbeer @shiva-menlo the issue is fixed with version 2.5.0. https://github.com/charlymr/XlsxReaderWriter/releases/tag/2.5.0

The lib is no longer dependent of ZipArchive, so you can use it with either SPM, Cocoapods or Carthage.

@charlymr charlymr unpinned this issue Nov 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants