Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Build and run Disabled in xcode

There are some applications which shows Build and run icon disabled which stops me from running the application.It does not happen to all applications but on a few . It mainly occurs to me in facebook applications and a few more applications.Can anybody have an idea what could be the problem ? I have tried everything from changing the build settings etc. but it does not work.

enter image description here

like image 319
Pankaj Kainthla Avatar asked Feb 22 '11 07:02

Pankaj Kainthla


People also ask

Why is run button greyed out in Xcode?

The run button at the bottom of the IDE that displays/hides the run console should have it's green arrow greyed out if there are no currently running programs.

How do I build and run in Xcode?

Build, Run, and Debug Your App To build and run your code, choose Product > Run, or click the Run button in your project's toolbar. Xcode analyzes your scheme's targets and builds them in the proper sequence. After a successful build, Xcode launches the associated app.

How do I change my build settings in Xcode?

Choose the project in the Project Navigator on the left. Select the Configurations target from the Targets section and click the Build Settings tab at the top. The Build Settings tab shows the build settings for the Configurations target. It's possible to expand this list with build settings that you define.


1 Answers

Need to fix the executable, it happens after renaming project.

Product > Scheme > Edit scheme..

Select

Run > Info

Set Executable is your app name, if selected None.

like image 196
Sergey Sergeyev Avatar answered Oct 30 '22 05:10

Sergey Sergeyev