Opening this here since this is likely an Xcode/SwiftPM bug. When building a library or application that has a dependency on a system package, you'll get compilation errors due to redefinition of modules. This was first reported in this forum post. From what I can work out, it's this PR in Homebrew that now adds the extra path and this PR that adds it to
pkg-cnofig which adds the path to other C flags, which causes the compilation errors.
Is this a Homebrew bug or SwiftPM bug?