You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'A' /private/tmp/pmbug: error: product 'B' not found. It is required by target 'E'.
But the library product named "B" has clearly been declared at the beginning of the file and there's no complaint about that. The documentation doesn't say that the target names need to match the product names, nor does the documentation say how the module name is derived. If I keep everything lined up, things seem to work, but it's black magic. Please fix the documentation to explain how all of this is supposed to work.
The text was updated successfully, but these errors were encountered:
The issue here is that you can't depend on products from the same package, only targets. This is already documented [here](https://developer.apple.com/documentation/swift_packages/target/3583314-target): "The dependencies of the target. A dependency can be another target in the package or a product from a package dependency"
Clarifying that the target's name will be used as the module name seems like a good suggestion.
I do also agree that the error message is confusing since a product "B" does exist.
Attachment: Download
Additional Detail from JIRA
md5: 6353403dfba25314c6072d2bf25e54c6
Issue Description:
swift test the attached project. I get:
But the library product named "B" has clearly been declared at the beginning of the file and there's no complaint about that. The documentation doesn't say that the target names need to match the product names, nor does the documentation say how the module name is derived. If I keep everything lined up, things seem to work, but it's black magic. Please fix the documentation to explain how all of this is supposed to work.
The text was updated successfully, but these errors were encountered: