"Run" and "Build" buttons greyed out?

I can't run any of my programs (C++), as the run button is greyed out.

When I click manage schemes, there are none, and the autocreate schemes button does nothing?

It used to work and just stopped for no reason, has anyone had this issue before and does anyone know how to fix it?

I've already tried redownloading XCode to no avail.

(I'm running XCode 7.1.1 and I'm very new to all this)

Thanks!

Answered by szymczyk in 93604022

Did you create a project for your program? You need to create a project to be able to build and run programs in Xcode. Choose File > New > Project to create a project. If you're learning C++, create a Command Line Tool project, which is in the Application category under OS X.


If you created a project and have no schemes, does choosing New Scheme instead of Manage Schemes create a new scheme for you?

Accepted Answer

Did you create a project for your program? You need to create a project to be able to build and run programs in Xcode. Choose File > New > Project to create a project. If you're learning C++, create a Command Line Tool project, which is in the Application category under OS X.


If you created a project and have no schemes, does choosing New Scheme instead of Manage Schemes create a new scheme for you?

Ah thanks, I hadn't realised about the project, and the schemes bit fixed the rest of them 🙂

"Run" and "Build" buttons greyed out?
 
 
Q