When I run swift build I get the following warning
warning: 'swiftpm-bug': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/.../Sources/Generated/Package2/test.swift
This was reported as an issue in Xcode (FB8741206 ) and appears to have been fixed there but is still an issue in the CLI.
Expected behavior
I would expect SwiftPM to not warn about Package2/test.swift as it is not in the sources folders for Package1 and is handled by the target Package2.
Actual behavior
No response
Steps to reproduce
No response
Swift Package Manager version/commit hash
No response
Swift & OS version (output of swift --version && uname -a)
swift-driver version: 1.75.2 Apple Swift version 5.8 (swiftlang-5.8.0.124.2 clang-1403.0.22.11.100)
Target: arm64-apple-macosx13.0
Darwin Adams-MBP-M1-Max.local 22.1.0 Darwin Kernel Version 22.1.0: Sun Oct 9 20:15:09 PDT 2022; root:xnu-8792.41.9~2/RELEASE_ARM64_T6000 arm64
I don't think any changes have been done here, if it appears "fixed" in newer Xcode that seems like a potential bug around missing diagnostics. cc @abertelrud
Description
If I have a folder structure as follows for a package
and my Package.swift has targets
When I run
swift build
I get the following warningThis was reported as an issue in Xcode (FB8741206 ) and appears to have been fixed there but is still an issue in the CLI.
Expected behavior
I would expect SwiftPM to not warn about
Package2/test.swift
as it is not in thesources
folders for Package1 and is handled by the target Package2.Actual behavior
No response
Steps to reproduce
No response
Swift Package Manager version/commit hash
No response
Swift & OS version (output of
swift --version && uname -a
)swift-driver version: 1.75.2 Apple Swift version 5.8 (swiftlang-5.8.0.124.2 clang-1403.0.22.11.100) Target: arm64-apple-macosx13.0 Darwin Adams-MBP-M1-Max.local 22.1.0 Darwin Kernel Version 22.1.0: Sun Oct 9 20:15:09 PDT 2022; root:xnu-8792.41.9~2/RELEASE_ARM64_T6000 arm64