Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

automatically build, deploy and test on iphone device

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

like image 770
bob Avatar asked Oct 25 '10 17:10

bob


People also ask

How can I test my iOS app on a real device?

Open up a project in Xcode and click on the device near the Run ▶ button at the top left of your Xcode screen. Plug your iPhone into your computer. You can select your device from the top of the list. Unlock your device and (⌘R) run the application.


1 Answers

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

There more on how to script Xcode in this answer.

like image 160
hotpaw2 Avatar answered Sep 23 '22 02:09

hotpaw2