Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode Run script Build Phase "run script only when installing" option

Tags:

xcode

There is a "run script only when installing" option in Xcode Run script Build Phase, I am not able to find documentation on this. What does it do?

like image 393
Boon Avatar asked May 06 '11 14:05

Boon


People also ask

How do I run a build phase script in Xcode?

Go to the Build Phases section of your project. (Click on the project, then on the main target, then on the “Build Phases” tab along the top.) Click the + at the top left to create a new build phase; choose “New Run Script Phase.” Xcode creates the script at the end of the list, naming it “Run Script.”

How do I run multiple scripts in Xcode?

you can run as many bash scrips as you like at any point in the build phase. select your target, then either: from the menu: Editor -> Add Build Phase -> Add run script build phase.

What is build phase in Xcode?

In Xcode, you specify the files and scripts for your target using build phases. The build system then uses that information and other build settings to determine the tasks required to build the target.

What is Xcode Run script?

Xcode uses the set of input and output files to optimize build times, by running your script only when necessary. If you don't specify input or output files, Xcode runs your script every time you build the target. For more information, see Improving the Speed of Incremental Builds.


1 Answers

With Run script only when installing checked, the script only runs when do Product Archive.

like image 138
vladof81 Avatar answered Sep 28 '22 11:09

vladof81