Description
When running flutter run targeting an iOS device, the build script fails during the pdfium download step. The ios.zip downloads successfully, but macos.zip appears to be corrupted or incomplete, causing unzip to fail with the following error:
Archive: macos.zip
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive.
unzip: cannot find zipfile directory in one of macos.zip or
macos.zip.zip, and cannot find macos.zip.ZIP, period.
Steps to Reproduce
- Add
pdfrx as a dependency in a Flutter project
- Run
flutter run on a physical iOS device
- The build script under
pdfium/.lib/pdfium-apple-v10/ attempts to download pdfium-macos.zip from the GitHub release pdfium-apple-v10
- The download completes but the resulting
macos.zip is not a valid ZIP archive
Expected Behavior
macos.zip downloads correctly and is unzipped without errors.
Actual Behavior
The unzip step fails — the file seems to be truncated or corrupted (possibly a partial download or a redirect issue with curl).
Environment
- Flutter version: 3.32.2
- pdfrx version: 1.3.3
- OS: macOS 16
- Target: iOS (physical device)
Possible Cause
The curl -Lo command may be receiving an unexpected response (e.g., an HTML redirect page instead of the actual ZIP file) when fetching the macOS release asset.
Request
Please can you help me correct this error?
Description
When running
flutter runtargeting an iOS device, the build script fails during the pdfium download step. Theios.zipdownloads successfully, butmacos.zipappears to be corrupted or incomplete, causingunzipto fail with the following error:Steps to Reproduce
pdfrxas a dependency in a Flutter projectflutter runon a physical iOS devicepdfium/.lib/pdfium-apple-v10/attempts to downloadpdfium-macos.zipfrom the GitHub releasepdfium-apple-v10macos.zipis not a valid ZIP archiveExpected Behavior
macos.zipdownloads correctly and is unzipped without errors.Actual Behavior
The unzip step fails — the file seems to be truncated or corrupted (possibly a partial download or a redirect issue with
curl).Environment
Possible Cause
The
curl -Locommand may be receiving an unexpected response (e.g., an HTML redirect page instead of the actual ZIP file) when fetching the macOS release asset.Request
Please can you help me correct this error?