您的位置:首页 > 运维架构 > Shell

How to Run a Custom Shell Script During an XCODE Build

2012-07-31 16:47 495 查看
Right click on the specific target in XCODE



You can enter your shell script like this, here is a sample script to list available variables.



Build and Run and come open build results to see your script results.




Xcode
4 build setting variables for scheme scripts

转自:http://stackoverflow.com/questions/5319989/xcode-4-build-setting-variables-for-scheme-scripts

Apart from that, if you select "None", there will be a bunch of environment variables set by Xcode. You can discover all of them by doing something like 
printenv
> ~/Desktop/printenv.txt
 to have them dumped to a text file.

Some of the more useful environment variables include 
ARCHIVE_PATH
SCHEME_NAME
USER
,
ARCHIVE_DSYMS_PATH
ARCHIVE_PRODUCTS_PATH
.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息