I'm getting this specific variation of this issue and I have found a solution. Just trick xcode into thinking that one local library is two:
• Close all projects from menu bar or ctrl-option-cmd-w
• Delete contents of ~/Library/Developer/Xcode/DerivedData
• Delete any Package.resolved, .swiftpm or .build files in ALL packages that are local.
• Create a symbolic link to the local library "ln -s MyLibrary MyLibraryII "
...
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: