To fix it I had to go to the menu Product > Edit Scheme... > Select "Run " (in the sidebar) > Info (tab). In here is a drop down box labeled Executable, select it and choose your app that you wish to launch when the Run button is clicked.
在网上找了很多关于这个问题的解决方法,最终一个适合我的情况。
先说说我的情况
写好的程序本来可以运行的,中午睡了会,可能压了键盘,结果不能Run了!!!急死人。
试了一下其他的程序是没有问题的,说明是工程有问题,发现有位人士解决了这个问题,我就记录下来供大家参考。