Sharing package between Xcode project and Swift Package

I'm trying to share a dependency between my the target of my Xcode project and a Swift Package (part of the same project) but I'm getting a duplicate symbols error with both dynamic and static targets.

I have 3 targets: App - Cocoa Touch, Module A - Static Framework, Module B - Static Framework, and a Swift Package called shared (produces a static library).

I'm trying to share Framework A between all the targets and the shared package.

Is there any recommended approach for this? Also, I'm curious if dynamic or static frameworks are recommended in general.
Sharing package between Xcode project and Swift Package
 
 
Q