Skip to content

Commit eb8c15c

Browse files
committed
By default, generate the xcodeproj at project root
Rather than the current working directory. If you want it at the working directory, specify “.”
1 parent c39ba02 commit eb8c15c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Sources/swift-build/main.swift

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,14 +90,13 @@ do {
9090
case .Version:
9191
print("Apple Swift Package Manager 0.1")
9292

93-
case .GenerateXcodeproj(let xcodeprojPath):
93+
case .GenerateXcodeproj(let outpath):
9494
let dirs = try directories()
9595
let packages = try fetch(dirs.root)
9696
let (modules, products) = try transmute(packages, rootdir: dirs.root)
9797
let swiftModules = modules.flatMap{ $0 as? SwiftModule }
98-
99-
let xcodeprojFolder = try (xcodeprojPath ?? ".").abspath()
100-
let path = try Xcodeproj.generate(path: xcodeprojFolder, package: packages.last!, modules: swiftModules, products: products)
98+
99+
let path = try Xcodeproj.generate(path: outpath ?? dirs.root, package: packages.last!, modules: swiftModules, products: products)
101100

102101
print("generated:", path.prettied)
103102
}

0 commit comments

Comments
 (0)