How can to compile titanium mobile app from command line and to map the profile/provision for the app at compile time.
First you need to figure out where the Titanium/mobilesdk is installed. It's either going to be /Library/Application Support/Titanium/mobilesdk/osx or ~/Library/Application Support/Titanium/mobilesdk/osx. Then you need to figure out what version of Titanium you'd like to use. Assuming the latest version, then you would run:
python ~/Library/Application\ Support/Titanium/mobilesdk/osx/2.1.1.GA/iphone/builder.pybuilder.py takes a couple arguments:
builder.py <command> <version> <project_dir> <appid> <name> [options]I'm not sure exactly how you map the provision, but perhaps the
builder.py distributewill steer you in the right direction.
I think Chris's answer was pretty hardcore though was perfectly correct. Here is a simpler version which i use (taking parts from Chris's answer as was required):
First figure out as to where Titanium/mobilesdk is installed. As on Mac machine it is commonly installed at ~/Library/Application\ Support/Titanium/mobilesdk/osx/<SDK Version>. If you have updated to the latest version 2.1.1 then path will be ~/Library/Application\ Support/Titanium/mobilesdk/osx/2.1.1.GA
Add the SDK path to PATH variable inside ~/.bash_profile file in Mac/Linux or In the System variables in Windows
Now go to Terminal/DOS Prompt and type titanium.py/titanium for (Mac/Linux)/Windows and it will display all the options relevant.
I hope this helps.
you can also try this utility
Think you can help? Login to answer this question!