Where is the Run Script and Build Phase in Xcode? Where is the Run Script and Build Phase in Xcode? ios ios

Where is the Run Script and Build Phase in Xcode?


It is still there. Make sure you click everywhere indicated in red in the image below.

enter image description here


You can configure different build phases to perform tasks when building a target.

To view the build phases, open the project editor and click Build Phases. To add build phases that don’t appear in the editor, click the Add button (+) and choose a build phase from the pop-up menu.

Project Editor

Use the project editor to view and edit your project and target settings, such as build options, target architectures, and code signing characteristics. In the main window, click the file icon () in the navigator area and select the project below. The project editor appears to the right of the navigator. Choose either the project or a target from the pop-up menu and use the tabs to switch to the different types of settings.

enter image description here

The Run script:

Runs a specified shell script during the build process. This script can reference build settings from the target, such as $(SRCROOT), the directory containing the target’s source files. This build phase also lets you provide a list of input and output files. The script always runs when no input and output files are provided. When input and output files are provided, the script only runs if it has never been run before, one of the input files has changed, or one of the output files is missing. This build phase can be enabled for all builds or only during an installation build, and maybe added multiple times per target.


Carthage maintainers updated README, it is necessary to add output paths too to prevent useful copying of frameworks. I have released simple script named Carting to automate these steps.