Skip to content

Commit 4b4ed74

Browse files
authored
Merge pull request #701 from abertelrud/SR-2718
SR-2718: Xcode generated projects in custom locations have incorrect path to project in scheme file
2 parents 37f0f1a + a23ddbc commit 4b4ed74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Xcodeproj/generate().swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public func generate(outputDir: AbsolutePath, projectName: String, graph: Packag
7373
/// it has all tests associated so CMD+U works
7474
let schemeName = "\(projectName).xcscheme"
7575
try open(schemesDir.appending(RelativePath(schemeName))) { stream in
76-
xcscheme(container: xcodeprojName, graph: graph, enableCodeCoverage: options.enableCodeCoverage, printer: stream)
76+
xcscheme(container: xcodeprojPath.relative(to: srcroot).asString, graph: graph, enableCodeCoverage: options.enableCodeCoverage, printer: stream)
7777
}
7878

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

0 commit comments

Comments
 (0)