Skip to content

Commit 1ba9d35

Browse files
committed
Address minor feedback from swiftlang#1604
1 parent a6cad4b commit 1ba9d35

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Sources/Basic/Process.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ public final class Process: ObjectIdentifierProtocol {
192192
self.verbose = verbose
193193
}
194194

195-
/// Returns true if the given program is present and executable in search path.
195+
/// Returns the path of the the given program if found in the search paths.
196196
///
197197
/// The program can be executable name, relative path or absolute path.
198198
public static func findExecutable(_ program: String) -> AbsolutePath? {

Sources/Commands/SwiftPackageTool.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ public class SwiftPackageTool: SwiftTool<PackageToolOptions> {
328328
usage: "Use the legacy scheme generator"),
329329
generateXcodeParser.add(
330330
option: "--watch", kind: Bool.self,
331-
usage: "Watch the filesystem and autogenerate the Xcode project if needed"),
331+
usage: "Watch for changes to the Package manifest to regenerate the Xcode project"),
332332
to: {
333333
$0.xcodeprojOptions.useLegacySchemeGenerator = $1 ?? false
334334
$0.xcodeprojOptions.enableAutogeneration = $2 ?? false

Tests/CommandsTests/PackageToolTests.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ final class PackageToolTests: XCTestCase {
504504
packageRoot: packageRoot)
505505

506506
let script = try helper.createXcodegenScript(
507-
XcodeprojOptions())
507+
XcodeprojOptions(xcconfigOverrides: .init("/tmp/overrides.xcconfig")))
508508

509509
XCTAssertEqual(try fs.readFileContents(script), """
510510
#!/usr/bin/env bash
@@ -515,7 +515,7 @@ final class PackageToolTests: XCTestCase {
515515
516516
set -eu
517517
518-
swift package generate-xcodeproj
518+
swift package generate-xcodeproj --xcconfig-overrides /tmp/overrides.xcconfig
519519
520520
""")
521521
}

0 commit comments

Comments
 (0)