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.
转自: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
Some of the more useful environment variables include
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.txtto 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.
相关文章推荐
- How to Run a Custom Shell Script During an XCODE Build
- How to run Cobertura as an ant build script from eclipse
- How to build docker registry for local use by shell script
- 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 Run a Shell Script with Mac App Sandbox Enabled?
- How to run / install xcodebuild?
- Xcode 9.0 - UMengSocialCOM SDK 打包报错:Run custom shell script `[CP] Copy Pods Resources
- How to run a Java Program as a daemon (service) on Linux (openSUSE) using a shell script
- How to Build Android Applications Based on FFmpeg by An Example
- How to Build and Run Android NDK Examples?
- How to Build Android Applications Based on FFmpeg by An Example
- How to Build An Action and Emotion Database for Simulated Driver’s State Recognition
- 《How to run one script by command line in 3dsMax》
- Android NDK: Your APP_BUILD_SCRIPT points to an unknown file:
- How to build a mobile app with an App Engine backend
- Xcode SVN Error: Attempted to lock an already-locked dir, How to solve?
- How to secure an Ubuntu 12.04 LTS server - Part 2 The GUI installer script
- run custom shell script '[cp] copy pods resource
- 【转载】How to build and run your first deep learning network