Skip to content

Commit

Permalink
https://bugs.swift.org/browse/SR-2718 Xcode generated projects in cus…
Browse files Browse the repository at this point in the history
…tom locations have incorrect path to project in scheme file; causes broken refs to buildables

When using the `--output` option of the `generate-xcodeproj` command line action, the resulting scheme had an incorrect path reference to the location of the project, causing Xcode to not be able to find the referenced targets.
  • Loading branch information
abertelrud committed Sep 27, 2016
1 parent 55a6cc1 commit a23ddbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Xcodeproj/generate().swift
Expand Up @@ -73,7 +73,7 @@ public func generate(outputDir: AbsolutePath, projectName: String, graph: Packag
/// it has all tests associated so CMD+U works
let schemeName = "\(projectName).xcscheme"
try open(schemesDir.appending(RelativePath(schemeName))) { stream in
xcscheme(container: xcodeprojName, graph: graph, enableCodeCoverage: options.enableCodeCoverage, printer: stream)
xcscheme(container: xcodeprojPath.relative(to: srcroot).asString, graph: graph, enableCodeCoverage: options.enableCodeCoverage, printer: stream)
}

////// we generate this file to ensure our main scheme is listed
Expand Down

0 comments on commit a23ddbc

Please sign in to comment.