First make sure that you Stop the application, and then Run , then a request appears asking for the target device.
I am using macOS Sierra, I am looking at the following path to change the settings if I encounter the problem you were talking about.
Run> Change Configurations> Application> Target Deployment Options.
source share