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

xcode

Solution

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

Problem

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?

Original source