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.
Problem
When downloading
segmentio.analytics-swiftversion1.9.1via 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.imagesetIllegal byte sequenceunable to process ... Segment???Avatar???Green@2x.pngunable to process ... Twilio???Segment???Horizontal???Green.pngThis 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.pngExamples/apps/SegmentExtensionsExample/SegmentExtensionsExample/Assets.xcassets/Twilio—Segment—Horizontal—Green.pngExpected 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.pngTwilio-Segment-Horizontal-Green.pngThis should prevent unzip/extraction failures caused by invalid filename characters and allow the package to install successfully via SPM.