How to Run a Custom Shell Script During an XCODE Build
来源:互联网 发布:js控制input 框不可写 编辑:程序博客网 时间:2024/06/05 06:54
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-scriptsApart 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
.
参考说明
https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/xcrun.1.html
shell的官方参考网页
https://developer.apple.com/library/mac/#documentation/OpenSource/Conceptual/ShellScripting/Introduction/Introduction.html#//apple_ref/doc/uid/TP40004268-TP40003516
- How to Run a Custom Shell Script During an XCODE Build
- How to Run a Custom Shell Script During an XCODE Build
- How to run Cobertura as an ant build script from eclipse
- How to run a script in ubuntu?
- Error: run custom shell script
- How to Run a Shell Script with Mac App Sandbox Enabled?
- How to Run a Shell Script with Mac App Sandbox Enabled
- how to run 2 or more commands in a shell script [for Linux & Windows]
- HOW TO Load a Custom Script with Dependencies
- How to Create a First Shell Script
- How to add a custom build step to MSBuild Projects
- How to pass an argument to a PowerShell script?
- How to Run a Python Script Without Python
- How to compile a TCL script into an EXE program
- How to build multiple targets from a single Xcode Project
- how to run docker build behind a proxy (docker build host machine behind a proxy)
- How to write shell script
- how-to-run-python-script-on-spark
- java 注解
- nyoj 364 田忌赛马
- http协议解析
- PostgreSQL学习手册(客户端命令<一>)
- ContentProvider访问通讯录
- How to Run a Custom Shell Script During an XCODE Build
- 在Ubuntu上使用eclipse开发C++[持续更新...]
- Matlab计算运行时间方法
- nyoj 传纸条(一) 61 双线DP
- SQL exists/not exists语句
- 剑指Offer-15-链表中的倒数第k个节点
- 类对象,类名.class与类名.this
- UI第三天:⾃定义视图、视图控制器
- Android防360水波进度