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

Xcode

Xcode Problem Overview


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?

Xcode Solutions


Solution 1 - Xcode

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

Solution 2 - Xcode

In the Xcode Build System Guide (Xcode 3.2.x), it says:

> Run script only when installing. Runs the script only during install builds, that is, when using the install option of xcodebuild or when the build settings Deployment Location (DEPLOYMENT_LOCATION) and Deployment Postprocessing (DEPLOYMENT_POSTPROCESSING) are on.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionBoonView Question on Stackoverflow
Solution 1 - Xcodevladof81View Answer on Stackoverflow
Solution 2 - XcodeericgView Answer on Stackoverflow