I had the same issue when adding a WidgetExtension to my functioning SwiftUI app.
Was the same name in "Product Module Name" for App and Widget.
This solved it for me.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: