You may want to separate "build" directory from the Swift project directory.
In such case, you might create a symbolic link.
However, 'swift-xcodegen' doesn't seem to assume such a situation.
% ./swift/utils/generate-xcode ./build/Ninja-ReleaseAssert
Building for production...
[1/1] Write swift-version--58304C5D6DBC2206.txt
Build of product 'swift-xcodegen' complete! (0.23s)
info: Generating project for '/Users/yockow/swift-project-build/Ninja-ReleaseAssert'...
error: '/Users/yockow/swift' not found
Expected behavior
'swift-xcodegen' can find the repository.
Environment
Hash of 'swiftlang/swift' repository: 7a43b44a2e2.
swift-driver version: 1.115 Apple Swift version 6.0.2 (swiftlang-6.0.2.1.2 clang-1600.0.26.4)
Target: arm64-apple-macosx15.0
Description
You may want to separate "build" directory from the Swift project directory. In such case, you might create a symbolic link. However, 'swift-xcodegen' doesn't seem to assume such a situation.
Reproduction
Given the composition like below:
Then try to generate an Xcode project:
Expected behavior
'swift-xcodegen' can find the repository.
Environment
Hash of 'swiftlang/swift' repository: 7a43b44a2e2.
Additional information
No response