I ran into the same issue when tried to debug a 2nd widget in our app. To fix the issue go to Edit Scheme, select Run on the left panel, and then at the top select the Arguments tab. Assign a string value of the widget you want to test as the value of _XCWidgetKind and check the box on the left hand side. Now you can build and test your widget.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: