Could not launch “ProjectName-Mac-Debug" in Xcode?

Xcode says “Could not launch “ProjectName-Mac-Debug” when I try to run the scheme “ProjectName - Mac”. Everything works fine when I use the “ProjectNameEditor - Mac” scheme (except that the whole editor stops as soon as there is an exception). How can I solve this problem?