Add support for large iOS application packages #342
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Creating
Ipa
instances from large archives (4+GB) results in the following exception:Similar error occurs when
unzip
is used:$ unzip -p app.ipa Payload/Runner.app/Info.plist warning [app.ipa]: 17179869184 extra bytes at beginning or within zipfile (attempting to process anyway) file #1: bad zipfile offset (lseek): 17362427904
This is because macOS creates corrupt zip archives when the file size exceeds 4GB (more information on the matter can be read from this SO answer: https://stackoverflow.com/a/59518097). 7-Zip is capable of handling such archives and this PR adds a fallback to use
7z
in casezipfile.BadZipFile: Truncated file header
error is encountered.