sometimes xcode if configured to build a framework as well as an app. If it builds your project fine but does not run it then try this
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.