Xcode - 在特定构建配置中运行Post-Actions脚本

Xma*_*hts 3 macos xcode build

有没有办法在Xcode中运行post-actions脚本,只有在项目已经在特定的构建配置中运行时(发生在Release中,不在Debug中).

非常感谢

tro*_*foe 13

是; 在您的脚本$CONFIGURATION中将设置变量:

#!/bin/sh

if [ "$CONFIGURATON" != "Release" ]; then
    exit 0
fi

# Does stuff only in Release build
Run Code Online (Sandbox Code Playgroud)

请参阅此SO问题以获取您可能感兴趣的其他Xcode变量的列表.