From fbb040926e6dd6b86aa5dcd0263c378e5dd751a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kornel=20Lesin=CC=81ski?= Date: Fri, 13 Jan 2017 00:43:42 +0000 Subject: [PATCH] Fix URL/path confusion Fixes #995 --- generate_appcast/ArchiveItem.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generate_appcast/ArchiveItem.swift b/generate_appcast/ArchiveItem.swift index ed98016b..5e6058fa 100644 --- a/generate_appcast/ArchiveItem.swift +++ b/generate_appcast/ArchiveItem.swift @@ -100,7 +100,7 @@ class ArchiveItem: CustomStringConvertible { var archiveURL: URL { if let relative = self.feedURL { - return URL(string: self.archivePath.lastPathComponent, relativeTo: relative)! + return URL(fileURLWithPath: self.archivePath.lastPathComponent, relativeTo: relative) } return URL(string: self.archivePath.lastPathComponent)! }