Xcode 运行脚本构建阶段“只在安装时运行脚本”选项

在 Xcode Run script Build Stage 中有一个“只在安装时运行脚本”选项,我找不到有关这方面的文档。它有什么用?

32659 次浏览

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.

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