I was still experiencing this in beta 2 and above, including the RC. It turned out that in the long-ago, I had actively disabled the "new" SPM PIF builder so I wasn't using the builder fixed by the above pull request. Changing that setting fixed it for me:
defaults write com.apple.dt.Xcode IDEEnableNewPackagePIFBuilder -bool YES
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: