Cannot load app onto device from command-line without hack

Originator:listrophy
Number:rdar://19116438 Date Originated:12/2/2014
Status:Open Resolved:
Product:Developer Tools Product Version:6.1
Classification:Enhancement Reproducible:
 
Summary:
In order to fully script my integration testing workflow
As a developer or continuous integration server
I want to load my newly compiled app onto my device from the command-line without hacks

Right now, the only two ways I've found to load an app onto a device from the command line are:

1. Use xcodebuild(1) with a buildaction of "test." This is a hack because I don't want to run unit tests. I just want the app on the device so I can run integration tests.
2. Use a third-party tool like ios-deploy[1], which is GPL'ed (I strongly prefer MIT or Apache2 licenses) and apparently uses private Apple API (and is therefore liable to break).

I want something like a buildaction of "load" (or "deploy" or ...) on xcodebuild(1) that simply installs the application onto the specified destination.

[1]: https://github.com/phonegap/ios-deploy

Steps to Reproduce:
1. At the command line, run:

xcodebuild -project MyApp.xcodeproj -configuration Debug -sdk iphoneos -scheme MyApp -destination "platform=iOS,name=Juliette"  build test


Expected Results:
I want to invoke xcodebuild with "deploy" (or some other name) instead of "test", like this:

xcodebuild -project MyApp.xcodeproj -configuration Debug -sdk iphoneos -scheme MyApp -destination "platform=iOS,name=Juliette"  build deploy

Actual Results:
Running with the buildaction of "test" works, but it runs tests on the device, which is more than what I want to do.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!