Skip to content

Commit 908179d

Browse files
committed
Update FilePathResovler so the product references can use a build setting
1 parent 1a2b65d commit 908179d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SWBCore/ProjectModel/FilePathResolver.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public final class FilePathResolver: Sendable
8484
}
8585

8686
// FIXME: We are relying on the product reference name being constant here. This is currently true, given how our path resolver works, but it is possible to construct an Xcode project for which this doesn't work (Xcode doesn't, however, handle that situation very well). We should resolve this: <rdar://problem/29410050> Swift Build doesn't support product references with non-constant basenames
87-
return sourceTreePath.join(productReference.name)
87+
return sourceTreePath.join(scope.evaluate(scope.table.namespace.parseString(productReference.name)))
8888

8989
default:
9090
preconditionFailure("Cannot resolve the path for a \(type(of: reference))")

0 commit comments

Comments
 (0)