Cross target dependency in mixed source package

I am having trouble getting a mixed source Swift Package together where a Swift target depends on a C language target within the same package. The documentation seems to suggest that this should work; does it? This old reply claims otherwise, but may be outdated by now.

Solved it by means of Swift Package and xcframework target for C library: where to include the header? - #8 by NeoNacho