(First reported on the forums)
With two C based targets where one has a dependency on the other, I would expect to be able to use `@import <ModuleNameFromTarget>;` to import the generated module in the C (Objective-C in this case) code. I'm able to successfully import modules from both targets in a Swift based target, but not in a C based target. The only way to successfully import headers from the other target is to use the header name directly as a file import.
There are two errors that occur:
- Running swift build or swift run will result in a fatal error: module 'Foo' not found.
- If you generate an Xcode project, C based modules are disabled in the generated project so it fails right away.
I created a simple repro project on GitHub to demonstrate this with annotations on the problematic lines.