Merge pull request #487 from monowerker/patch-1

Fix writing to a project path
This commit is contained in:
Yonas Kolb 2019-01-09 13:41:58 +11:00 committed by GitHub
commit e68ebe9e7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -5,6 +5,9 @@
#### Added
- Added new ability to generate empty directories via `options.generateEmptyDirectories` [#480](https://github.com/yonaskolb/XcodeGen/pull/480) @Beniamiiin
#### Fixed
- Fixed `--project` argument not taking effect [#487](https://github.com/yonaskolb/XcodeGen/pull/487) @monowerker
## 2.1.0
#### Added

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 {