phonegap/ios-deploy — pull request #15 by wjywbs (2013-12-20 23:16:44+00:00)
Title: Read port and symbol folder name in command line to debug app on multiple devices

I'm using ios-deploy for continuous integration, so I would like to run the app on multiple devices at the same time. The port used was fixed to 12345, so I think there will be conflicts when running multiple instances of ios-deploy.

Two command line options are added:

-p, --port port used for device (default: 12345)
-s, --symbol symbol folder name for device (default: "7.0.2\ (11A501)" )

To find ios device id, go to organizer in Xcode and copy the identifer. Make sure Xcode generated symbols for the devices.

To find symbol folder, find the folder name of your ipad version in ~/Library/Developer/Xcode/iOS DeviceSupport This can speed up the loading time a lot. Note that this argument will be passed to python, so it needs to be escaped.

For different devices, assign different ports.

Sample usage:

./ios-deploy -i deviceID -b app-path -d -p 12000 -s "7.0.4\ (11B554a)"