[英]How can I limit a “Run Script” build phase to my release configuration?
I have a shell script that I would like to run at the end of my target's build phase.我有一个 shell 脚本,我想在目标的构建阶段结束时运行它。 However, I would like this script to only run when I build with the release configuration.
但是,我希望此脚本仅在我使用发布配置构建时运行。 How can this be done?
如何做到这一点? Thanks!
谢谢!
if [ "${CONFIGURATION}" = "Release" ]; then
echo Do something really release-like
fi
The script will run at the end of every configuration, but it won't do anything in this case unless the configuration is Release (assuming everything it does is contained within the test block).该脚本将在每个配置结束时运行,但在这种情况下它不会做任何事情,除非配置是 Release(假设它所做的一切都包含在测试块中)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.