I am facing this problem again and again. Anybody can give the solution to this problem except reboot the Mac?
I have already tried these tricks
Under Product -> Scheme -> Edit Scheme, check these settings once.
Product -> Scheme -> Edit Scheme
Right now it is showing None. That is NOT what you want. Choose the Executable from the dropdown. It should have something like: <app_name>.app.
None
<app_name>.app
Enable/change location in the xcode console. It worked for me.