开发者

How can I limit a "Run Script" build phase to my release configuration?

开发者 https://www.devze.com 2023-01-14 20:50 出处:网络
I have a shell script that I would like to run at the end of my target\'s build phase. However, 开发者_运维百科I would like this script to only run when I build with the release configuration. How can

I have a shell script that I would like to run at the end of my target's build phase. 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).


The easiest way to do this, is checking the "Run script only when installing" checkbox.

How can I limit a "Run Script" build phase to my release configuration?

0

精彩评论

暂无评论...
验证码 换一张
取 消