Test Widget Locally on iPhone

I am building an app with the WidgetKit extension (created using File > New > Target > Widget Extension). When I run the app scheme on my Mac, I can see my local app and add the widget in the widget sidebar using "Edit Widgets." However, when I build the app using the iOS scheme on my iPhone, I cannot add the widget to my phone, as it does not appear in the widget selection window. The app works perfectly fine and launches.

I am using an iPhone 13 pro on iOS 15.4.1.

Is this a recent bug? A couple of months ago on a different project, this was working.

Test Widget Locally on iPhone
 
 
Q