views:

43

answers:

1

Is there way to build iphone app on the command line with xcodebuild, then automatically deploy the app to a USB-connected iphone device and run some unit testing on device?

Right now, I can do this under xCode with "Build and Run", but I'm looking for solution to do this outside of the xCode GUI environment.

Thanks

+2  A: 

You can script Xcode using Applescript, and run Applescript scripts from the command line.

There more on how to script Xcode in this answer.

hotpaw2