Running Xcode from the Shell
Xcode contains a command-line build tool called, logically enough, xcodebuild. You can use it to create a shell script that builds all of your projects. xcodebuild also has a nice feature that allows you to override any build setting in your project. For example, suppose that all of your projects' Deployment build configurations use the optimization setting Os, but you'd like to test some other settings to see if they are any faster. It would be tedious to go into each project and set the optimization level, but if you have a script, you can change it in one place. Here is an example using /bin/tcsh syntax:
/usr/bin/xcodebuild -project goofy.xcodeproj -configuration Deployment GCC_OPTIMIZATION_LEVEL=$argv[1]
Return to the Max/MSP Universal Binary SDK
Table of Contents
--
DavidZicarelli - 05 Apr 2006
to top
-->