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.