mirror of
https://github.com/yonaskolb/XcodeGen.git
synced 2024-11-10 06:14:38 +03:00
Merge pull request #487 from monowerker/patch-1
Fix writing to a project path
This commit is contained in:
commit
e68ebe9e7e
@ -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
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user