Hi, exactly same issue !
I'm experiencing the same issue.
I think that you should indeed be using a dynamic library - by setting the product type of your SPM library to `.dynamic`.
However, I have a similar example where I have a framework and a command-line app, both of which use a couple of SPM libraries. I've got both a static and a dynamic product defined in the SPM libraries, and have added the dynamic versions to the Link Binary With Libraries panel for both the framework and the command line target.
And I'm still getting the above error with Xcode 11.4b1!
Xcode 11.3.1 will build successfully, but I'm getting a runtime error about symbols being duplicated, so it looks like Xcode is actually ignoring the fact that I've added the dynamic versions to my targets, and is using the static versions instead.
Actually, after further investigation, I think that XC11.4 was correct in saying that I had a library linked twice. I was depending on other libraries which were pulling in the static version of the shared library. This is a real mess for any non-trivial graph .
What we really need here is for SPM's `.automatic` product type to work, and do the right thing!
Happening to me as well
I think i had the same problem.. it worked in XC 11.3.1 and 1.4 beta broke it...
Now I'm not a 100% on this but i think it was because i used SwiftPackages by locally importing them to XC (via Drag&Drop, as shown @ WWDC). Now for some reason XC didn't quite get that I wanted to use those local packages INSTEAD of the remote ones so in some projects it kept the remote ones wheras in other targets (SiriKit extension, if that matters) it used the local ones and therefore had two different, yet same packages...
So I removed the remote ones in Project Settings > Swift Packages and added the local ones to all my targets again.. Now it works...
Hope it helps someone ^^