From 40c472112da17df048cf8d492ecb1dc8a13e7de4 Mon Sep 17 00:00:00 2001 From: Daniel Ericsson Date: Wed, 9 Jan 2019 00:41:28 +0100 Subject: [PATCH] Fix writing to a project path --- Sources/XcodeGenKit/FileWriter.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/XcodeGenKit/FileWriter.swift b/Sources/XcodeGenKit/FileWriter.swift index 2ce3c415..7c6a1160 100644 --- a/Sources/XcodeGenKit/FileWriter.swift +++ b/Sources/XcodeGenKit/FileWriter.swift @@ -12,7 +12,7 @@ public class FileWriter { } public func writeXcodeProject(_ xcodeProject: XcodeProj, to projectPath: Path? = nil) throws { - let projectPath = project.defaultProjectPath + let projectPath = projectPath ?? project.defaultProjectPath let tempPath = try Path.processUniqueTemporary() + "XcodeGen" try? tempPath.delete() if projectPath.exists {