Fixes #122 - Using the -c option for listing device UUIDs instead the system_profiler

This commit is contained in:
Shazron Abdullah 2015-05-12 14:28:21 -07:00
parent a89b71bdf4
commit 9156689720
2 changed files with 4 additions and 8 deletions

View File

@ -77,6 +77,9 @@ The commands below assume that you have an app called `my.app` with bundle id `b
// Download the Documents directory of the app *only*
ios-deploy --download=/Documents -bundle_id my.app.id --to ./my_download_location
// List ids and names of connected devices
ios-deploy -c
## Demo
@ -87,10 +90,3 @@ The commands below assume that you have an app called `my.app` with bundle id `b
## Notes
* With some modifications, it may be possible to use this without Xcode installed; however, you would need a copy of the relevant DeveloperDiskImage.dmg (included with Xcode). lldb would also run slower as symbols would be downloaded from the device on-the-fly.
## Listing Device Ids
Device Ids are the UDIDs of the iOS devices. From the command line, you can list device ids [this way](http://javierhz.blogspot.com/2012/06/how-to-get-udid-of-iphone-using-shell.html):
system_profiler SPUSBDataType | sed -n -e '/iPod/,/Serial/p' | sed -n -e '/iPad/,/Serial/p' -e '/iPhone/,/Serial/p' | grep "Serial Number:" | awk -F ": " '{print $2}'

View File

@ -1844,7 +1844,7 @@ int main(int argc, char *argv[]) {
}
if (detect_only && timeout == 0) {
timeout = 5;
timeout = 0;
}
if (app_path) {