-
-
Notifications
You must be signed in to change notification settings - Fork 128
Open
Description
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
pdfrxas a dependency in a Flutter project - Run
flutter runon a physical iOS device - The build script under
pdfium/.lib/pdfium-apple-v10/attempts to downloadpdfium-macos.zipfrom the GitHub releasepdfium-apple-v10 - The download completes but the resulting
macos.zipis 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?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels