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

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5913199/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 20:58:22  来源:igfitidea点击:

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

xcode

提问by Boon

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 运行脚本构建阶段中有一个“仅在安装时运行脚本”选项,我找不到关于此的文档。它有什么作用?

回答by vladof81

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

随着运行脚本只在安装时检查,做产品存档当脚本只运行。

回答by ericg

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

在 Xcode Build System Guide (Xcode 3.2.x) 中,它说:

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.

仅在安装时运行脚本。仅在安装构建期间运行脚本,即使用 xcodebuild 的安装选项或构建设置部署位置 (DEPLOYMENT_LOCATION) 和部署后处理 (DEPLOYMENT_POSTPROCESSING) 开启时。