Fix writing to a project path

This commit is contained in:
Daniel Ericsson
2019-01-09 00:41:28 +01:00
committed by GitHub
parent 452a13c54e
commit 40c472112d
+1 -1
View File
@@ -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 {