Launch app by Target.

I've one widget in my app, so technically I have two Targets.

Now every time I hit compile, Xcode just launching my widget's Target by default, not my app's Target and I can't even change the log to my app's Target instead of widget's Target. So I cannot read logs from ViewController.swift.

my app's Target

com.myapp

my widget's Target

com.myapp.widget

Help me. How can I add my primary Target there?

Now every time I hit compile, Xcode just launching my widget's Target by default, not my app's Target

Have you chosen the right target you want to run on the Choose scheme button on the toolbar of Xcode?
Launch app by Target.
 
 
Q