14
votes

I tried this step:

Select the menu options "Project > New Build Phase > New Run Script Build Phase", and enter the following script (don't forget to replace /Users/youruser/bin by the correct path to gen_entitlements.py) :

export CODESIGN_ALLOCATE=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate
if [ "${PLATFORM_NAME}" == "iphoneos" ]; then
    /Users/youruser/bin/gen_entitlements.py "my.company.${PROJECT_NAME}" "${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/${PROJECT_NAME}.xcent";
    codesign -f -s "iPhone developer" --resource-rules "${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/ResourceRules.plist" \
         --entitlements "${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/${PROJECT_NAME}.xcent"  "${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/"
fi

(from link)

Now I want to remove this script from my project. How do I remove the "Run Script Build Phase" build phase from Xcode?

3
Seems almost exact duplicate of stackoverflow.com/questions/246422/… ?dbr
The problem is how to remove the scripts added at "Project > New Build Phase > New Run Script Build Phase"DFG

3 Answers

24
votes

Select the Run Script phase in your target and delete it.

Delete

6
votes

for xcode 4.5.1, the appearance is slightly different, click once on the run script phase and simultaneously press function + backspace (on a mac) to delete. When the dialog box pops up, click delete.enter image description here

1
votes
  1. In the Project Navigator go to the upper left hand corner and select the blue icon

enter image description here

  1. In the top center of the screen select Build Phases

enter image description here

  1. When you see the Run Script that you want to delete look all the way on the right hand corner of it and you'll see an X

enter image description here

  1. Press the X and you'll see a menu appear asking if you want to delete it

enter image description here

  1. Choose Delete