Multiple SwiftPM modules with macros triggers build failure "Multiple command produce …"

I've added macros to 3 SPM modules in our project. Setting them up with swift-syntax as a dedendency and adding .macro(…) targets which each modules sources depend on. The modules and their macros all work fine individually, but when I attempt to compile the app in Xcode (or command line) I get errors on all the swift-syntax frameworks indicating multiple copying of the frameworks. One copy for each of the modules where I've got swift-syntax as a dependency:

error: Multiple commands produce '…/Build/Products/Debug/Frameworks/SwiftBasicFormat.framework'
    note: Target 'FlagDataMacros' (project 'FeatureFlagsMacros') has copy command from '…/Build/Products/Debug/PackageFrameworks/SwiftBasicFormat.framework' to '…/Build/Products/Debug/Frameworks/SwiftBasicFormat.framework'
    note: Target 'ToolboxMacros' (project 'Toolbox') has copy command from '…/Build/Products/Debug/PackageFrameworks/SwiftBasicFormat.framework' to '…/Build/Products/Debug/Frameworks/SwiftBasicFormat.framework'
    note: Target 'ToolboxUIMacros' (project 'ToolboxUI') has copy command from '…/Build/Products/Debug/PackageFrameworks/SwiftBasicFormat.framework' to '…/Build/Products/Debug/Frameworks/SwiftBasicFormat.framework'
… etc, etc for every framework in swift-syntax

I'm at a. bit of a loss as to how to resolve this as I would have thought SPM would have no problems resolving the dependencies.

Anyone got any ideas?