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?

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.