How do I specify to xcodebuild (the command line tool) whether I want to build for the simulator or device?
xcodebuild
i find the -xcconfig flag quite useful. this option allows you to specify a path to an xcconfig (build settings file). within an xcconfig, you may #include other xcconfig files.
-xcconfig
#include