SwiftPM - Binary target with sub-dependencies

Hello,
although this workaround of using a dummy target to declare a binary sub-dependency is great and a huge help, we have encountered an issue with it. In a project, we have imported two dependencies that share the same dependency, the frameworks Foo and Bar are the two frameworks we are importing and FooBar is the shared framework. The respective package.swift files look as so:
Framework Foo:

// swift-tools-version:5.3
import PackageDescription
let package = Package(
    name: "Foo",
    platforms: [
        .iOS(.v10)
    ],
    products: [
        .library(
            name: "Foo",
            targets: [
                "FooTargets"
            ]
        )
    ],
    dependencies: [
        .package(name: "FooBar",
                 url: "https://github.com/foobar",
                 from: "1.0.0")
    ],
    targets: [
        .binaryTarget(
            name: "Foo",
            path: "Foo.xcframework"
        ),
        .target(name: "FooTargets",
                dependencies: [
                    .target(name: "Foo"),
                    .product(name: "FooBar", package: "FooBar")
                ],
                path: "Sources")
    ]
)

Framework Bar:

// swift-tools-version:5.3
import PackageDescription
let package = Package(
    name: "Bar",
    platforms: [
        .iOS(.v10)
    ],
    products: [
        .library(
            name: "Bar",
            targets: [
                "BarTargets"
            ]
        )
    ],
    dependencies: [
        .package(name: "FooBar",
                 url: "https://github.com/foobar",
                 from: "1.0.0")
    ],
    targets: [
        .binaryTarget(
            name: "Bar",
            path: "Bar.xcframework"
        ),
        .target(name: "BarTargets",
                dependencies: [
                    .target(name: "Bar"),
                    .product(name: "FooBar", package: "FooBar")
                ],
                path: "Sources")
    ]
)

Framework FooBar:

// swift-tools-version:5.3
import PackageDescription
let package = Package(
    name: "FooBar",
    platforms: [
        .iOS(.v10)
    ],
    products: [
        .library(
            name: "FooBar",
            targets: [
                "FooBar"
            ]
        )
    ],
    targets: [
        .binaryTarget(
            name: "FooBar",
            path: "FooBar.xcframework"
        )
    ]
)

The issue we are encountering is that there is a warning generated in the project stating:
Skipping duplicate build file in Copy Files build phase: /Users/rmchugh/TestIntergrations/TestSPMBug/DerivedData/TestSPMBug/SourcePackages/checkouts/foobar/FooBar.xcframework/ios-i386_x86_64-simulator/FooBar.framework

Is anyone else here experiencing any similar issues with this workaround or have a different implementation that doesn't generate this warning?

Thanks,
Ronan.