Automate iPhone build

Is there a way to automate an iPhone build?

I was thinking of using a script that would call, via Unity cammand line, a static function that would then call BuildPipeline.BuildPlayer.

The signature of BuildPlayer is :

static function BuildPlayer (levels : string[], locationPathName : string, target : BuildTarget, options : BuildOptions) : string

Unfortunatly, I don't see the iPhone in the BuildTarget documentation... Am I missing something?

http://unity3d.com/support/documentation/ScriptReference/BuildPipeline.BuildPlayer.html http://unity3d.com/support/documentation/ScriptReference/BuildTarget.html

The online documentation doesn't include iPhone specific details. Look inside /Applications/Unity iPhone/ and there should be a link to the iPhone documentation, which might have the details you need.