Skip to content

Corrupted macos.zip download causes build failure on iOS – pdfium-apple-v10 #615

@tchuigangderic44

Description

@tchuigangderic44

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

  1. Add pdfrx as a dependency in a Flutter project
  2. Run flutter run on a physical iOS device
  3. The build script under pdfium/.lib/pdfium-apple-v10/ attempts to download pdfium-macos.zip from the GitHub release pdfium-apple-v10
  4. 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions