Builds from SwiftPM CLI, errors involving xibs in Xcode

It seems Xcode is making some inference that SPM doesn't make regarding resources.

To repro:

git clone https://github.com/audulus/oneTBB
cd oneTBB
git checkout spm
swift build

Then open Package.swift in Xcode and observe the errors:

Multiple commands produce '[redacted]/Build/Products/Debug-iphoneos/oneTBB_tbb_target.bundle/en.lproj/MainMenu.nib'

I get the same errors when I try to use this package in my main Xcode project.

Do you have multiple dependents on this package? If they build statically you may end up with multiple copies I think. Xcode may detect that and build dynamically so there's only ever one copy. SPM still doesn't let you override this AFAIK, so the only real solution is to create another module from the package that explicitly links dynamically. Of course I could be totally wrong there too.