13

I am trying to select "Add Run Script Build Phase" under "Editor" > "Add Build Phase" in XCode 4, but the option is grayed out. Does anyone know why this would be happening? Thanks!

MarkR
  • 146
  • 1
  • 4

6 Answers6

17

This is now different...again...in XCode 6. There's a "+" button in the top left corner of the Build Phases area that will give you the New Run Script Phase option. I'll come back after the NDA has lifted to post screenshots.

d2burke
  • 4,081
  • 3
  • 39
  • 51
11

In case this wasn't answered, the step by step on adding a run script build phase is posted at http://runscriptbuildphase.com. It has the steps for Xcode 4 and Xcode 3.

Xcode Guru
  • 139
  • 1
  • 3
7

Screenshot of new 'plus' icon initially mentioned by @d2burke for those who have had difficulty finding it in Xcode 6 +

Screenshot of plus icon

Joe Barbour
  • 842
  • 9
  • 14
6

Did you select your target and there the build-phases tab in the main view? then it should lighten up

hth

Marcus Toepper
  • 2,403
  • 4
  • 27
  • 42
2

I'm new to Xcode too, but after googling same problem,i found that the solution is very simple. you should press on your target( left panel, then u click on Build phase (not build setting) ), after that you can add new build phase settings.

Wesam Na
  • 2,364
  • 26
  • 23
2

I was just working on this same problem with XCode 5. Even if you are already on the "Build Phase" tab, you need to click Build Phase, then immediately click Editor --> Add Build Phase