Skip to content

SPM extraction fails while unzipping analytics-swift 1.9.1 due to em dash filenames #431

@nmcc24

Description

@nmcc24

Problem

When downloading segmentio.analytics-swift version 1.9.1 via Swift Package Manager, extraction fails while unzipping the source archive because the archive contains asset filenames with em dashes (, U+2014) instead of regular hyphens (-).

Failure details

The package archive fails during unzip/extraction with errors like:

  • checkdir error: cannot create ... Segment???Avatar???Green.imageset
  • Illegal byte sequence
  • unable to process ... Segment???Avatar???Green@2x.png
  • unable to process ... Twilio???Segment???Horizontal???Green.png

This indicates the unzip step cannot handle the filename encoding/path in the archive.

Affected files

  • Examples/apps/SegmentExtensionsExample/SegmentExtensionsExample/Assets.xcassets/Segment—Avatar—Green@2x.png
  • Examples/apps/SegmentExtensionsExample/SegmentExtensionsExample/Assets.xcassets/Twilio—Segment—Horizontal—Green.png

Expected behavior

Swift Package Manager should download and unzip the source archive cleanly on all supported platforms. Filenames in the archive should use safe ASCII-compatible characters so unzip/extraction does not fail.

Suggested fix

Rename the files to use regular hyphens:

  • Segment-Avatar-Green@2x.png
  • Twilio-Segment-Horizontal-Green.png

This should prevent unzip/extraction failures caused by invalid filename characters and allow the package to install successfully via SPM.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions