xcodebuild command line install to device

I am trying to use the xcodebuild command line options to install as app to my USB connected iPhone. The best I can do is build it to a folder with the following command. Then I install it via iTunes.


xcodebuild install -scheme "My App" -destination 'platform=iOS,id=mydeviceid'



How do I build and run from the xcodebuild command line to the physical device?


Thank you in advance for your help.

AMC

xcodebuild command line install to device
 
 
Q