From 1466620cbfa58a8de0a54f585a538b14e668bd40 Mon Sep 17 00:00:00 2001 From: Didier Garcia Date: Mon, 27 Apr 2026 17:25:42 -0400 Subject: [PATCH] fix: rename em-dash asset filenames to ASCII hyphens MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The asset files and paths under Examples/apps/SegmentExtensionsExample/Assets.xcassets used em-dash (U+2014, "—") characters in their names. GitHub's auto-generated source archive (https://github.com/segmentio/analytics-swift/archive/refs/tags/.zip) encodes these as UTF-8, but the default macOS unzip (Info-ZIP) cannot decode them and aborts with "checkdir error: ... Illegal byte sequence". This in turn breaks Xcode Swift Package Manager resolution for any consumer whose environment extracts the archive with that unzip. Rename the two imagesets and their PNGs to use ASCII hyphens ("-"), and update the Contents.json filename keys plus the four Main.storyboard image references that name them. Fixes #431 --- .../Segment-Avatar-Green.imageset/Contents.json | 2 +- .../Segment-Avatar-Green@2x.png | Bin .../Contents.json | 2 +- .../Twilio-Segment-Horizontal-Green.png | Bin .../Base.lproj/Main.storyboard | 8 ++++---- 5 files changed, 6 insertions(+), 6 deletions(-) rename "Examples/apps/SegmentExtensionsExample/SegmentExtensionsExample/Assets.xcassets/Segment\342\200\224Avatar\342\200\224Green.imageset/Contents.json" => Examples/apps/SegmentExtensionsExample/SegmentExtensionsExample/Assets.xcassets/Segment-Avatar-Green.imageset/Contents.json (83%) rename "Examples/apps/SegmentExtensionsExample/SegmentExtensionsExample/Assets.xcassets/Segment\342\200\224Avatar\342\200\224Green.imageset/Segment\342\200\224Avatar\342\200\224Green@2x.png" => Examples/apps/SegmentExtensionsExample/SegmentExtensionsExample/Assets.xcassets/Segment-Avatar-Green.imageset/Segment-Avatar-Green@2x.png (100%) rename "Examples/apps/SegmentExtensionsExample/SegmentExtensionsExample/Assets.xcassets/Twilio\342\200\224Segment\342\200\224Horizontal\342\200\224Green.imageset/Contents.json" => Examples/apps/SegmentExtensionsExample/SegmentExtensionsExample/Assets.xcassets/Twilio-Segment-Horizontal-Green.imageset/Contents.json (80%) rename "Examples/apps/SegmentExtensionsExample/SegmentExtensionsExample/Assets.xcassets/Twilio\342\200\224Segment\342\200\224Horizontal\342\200\224Green.imageset/Twilio\342\200\224Segment\342\200\224Horizontal\342\200\224Green.png" => Examples/apps/SegmentExtensionsExample/SegmentExtensionsExample/Assets.xcassets/Twilio-Segment-Horizontal-Green.imageset/Twilio-Segment-Horizontal-Green.png (100%) diff --git "a/Examples/apps/SegmentExtensionsExample/SegmentExtensionsExample/Assets.xcassets/Segment\342\200\224Avatar\342\200\224Green.imageset/Contents.json" b/Examples/apps/SegmentExtensionsExample/SegmentExtensionsExample/Assets.xcassets/Segment-Avatar-Green.imageset/Contents.json similarity index 83% rename from "Examples/apps/SegmentExtensionsExample/SegmentExtensionsExample/Assets.xcassets/Segment\342\200\224Avatar\342\200\224Green.imageset/Contents.json" rename to Examples/apps/SegmentExtensionsExample/SegmentExtensionsExample/Assets.xcassets/Segment-Avatar-Green.imageset/Contents.json index d16a9445..41bd49d6 100644 --- "a/Examples/apps/SegmentExtensionsExample/SegmentExtensionsExample/Assets.xcassets/Segment\342\200\224Avatar\342\200\224Green.imageset/Contents.json" +++ b/Examples/apps/SegmentExtensionsExample/SegmentExtensionsExample/Assets.xcassets/Segment-Avatar-Green.imageset/Contents.json @@ -5,7 +5,7 @@ "scale" : "1x" }, { - "filename" : "Segment—Avatar—Green@2x.png", + "filename" : "Segment-Avatar-Green@2x.png", "idiom" : "universal", "scale" : "2x" }, diff --git "a/Examples/apps/SegmentExtensionsExample/SegmentExtensionsExample/Assets.xcassets/Segment\342\200\224Avatar\342\200\224Green.imageset/Segment\342\200\224Avatar\342\200\224Green@2x.png" b/Examples/apps/SegmentExtensionsExample/SegmentExtensionsExample/Assets.xcassets/Segment-Avatar-Green.imageset/Segment-Avatar-Green@2x.png similarity index 100% rename from "Examples/apps/SegmentExtensionsExample/SegmentExtensionsExample/Assets.xcassets/Segment\342\200\224Avatar\342\200\224Green.imageset/Segment\342\200\224Avatar\342\200\224Green@2x.png" rename to Examples/apps/SegmentExtensionsExample/SegmentExtensionsExample/Assets.xcassets/Segment-Avatar-Green.imageset/Segment-Avatar-Green@2x.png diff --git "a/Examples/apps/SegmentExtensionsExample/SegmentExtensionsExample/Assets.xcassets/Twilio\342\200\224Segment\342\200\224Horizontal\342\200\224Green.imageset/Contents.json" b/Examples/apps/SegmentExtensionsExample/SegmentExtensionsExample/Assets.xcassets/Twilio-Segment-Horizontal-Green.imageset/Contents.json similarity index 80% rename from "Examples/apps/SegmentExtensionsExample/SegmentExtensionsExample/Assets.xcassets/Twilio\342\200\224Segment\342\200\224Horizontal\342\200\224Green.imageset/Contents.json" rename to Examples/apps/SegmentExtensionsExample/SegmentExtensionsExample/Assets.xcassets/Twilio-Segment-Horizontal-Green.imageset/Contents.json index 01e839af..f688a489 100644 --- "a/Examples/apps/SegmentExtensionsExample/SegmentExtensionsExample/Assets.xcassets/Twilio\342\200\224Segment\342\200\224Horizontal\342\200\224Green.imageset/Contents.json" +++ b/Examples/apps/SegmentExtensionsExample/SegmentExtensionsExample/Assets.xcassets/Twilio-Segment-Horizontal-Green.imageset/Contents.json @@ -1,7 +1,7 @@ { "images" : [ { - "filename" : "Twilio—Segment—Horizontal—Green.png", + "filename" : "Twilio-Segment-Horizontal-Green.png", "idiom" : "universal", "scale" : "1x" }, diff --git "a/Examples/apps/SegmentExtensionsExample/SegmentExtensionsExample/Assets.xcassets/Twilio\342\200\224Segment\342\200\224Horizontal\342\200\224Green.imageset/Twilio\342\200\224Segment\342\200\224Horizontal\342\200\224Green.png" b/Examples/apps/SegmentExtensionsExample/SegmentExtensionsExample/Assets.xcassets/Twilio-Segment-Horizontal-Green.imageset/Twilio-Segment-Horizontal-Green.png similarity index 100% rename from "Examples/apps/SegmentExtensionsExample/SegmentExtensionsExample/Assets.xcassets/Twilio\342\200\224Segment\342\200\224Horizontal\342\200\224Green.imageset/Twilio\342\200\224Segment\342\200\224Horizontal\342\200\224Green.png" rename to Examples/apps/SegmentExtensionsExample/SegmentExtensionsExample/Assets.xcassets/Twilio-Segment-Horizontal-Green.imageset/Twilio-Segment-Horizontal-Green.png diff --git a/Examples/apps/SegmentExtensionsExample/SegmentExtensionsExample/Base.lproj/Main.storyboard b/Examples/apps/SegmentExtensionsExample/SegmentExtensionsExample/Base.lproj/Main.storyboard index ce835ac5..8f800097 100644 --- a/Examples/apps/SegmentExtensionsExample/SegmentExtensionsExample/Base.lproj/Main.storyboard +++ b/Examples/apps/SegmentExtensionsExample/SegmentExtensionsExample/Base.lproj/Main.storyboard @@ -15,7 +15,7 @@ - + @@ -125,7 +125,7 @@ - +