Building from command line

Hi.

Xcode 4.2 ( I`m using Snow Leopard, so I have to use this version) is VERY slow to compile in my machine.

Is there a way to build a cocos2dx project (for simulator or for device) from the command line?

Thanks

Jose